Interpreting (invalid trim argument) error in R : by a newbie

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Interpreting (invalid trim argument) error in R : by a newbie

Hawkins
My code is as follows:

lat <- 24.419
lon <- 54.502
days <- 1
Tmax <- 44.3
Tmin <- 26.0
tal <- 0.72
BCb_guess <- 0.13
epsilon <- 0.5
rad_mea <- 254
sirad::bccal(lat, days, rad_mea, extraT = NULL, Tmax, Tmin, tal)


When I execute my function bccal() from the sirad package, I get the following error:

Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L,  :
  invalid 'trim' argument


I am completely new to R any help in solving the issue will be highly appreciated, Thanks