r - Error:attempt to apply non-function -
i'm trying run following code in r, i'm getting error.
i'm not sure part of formula incorrect. appreciated.
> censusdata_20$agb93 = wd * exp(-1.239 + 1.980 * log (diam93) + 0.207 (log(diam93))^2 - 0.0281 (log(diam93))^3) error: attempt apply non-function
you're missing *s in last 2 terms of expression, r interpreting (e.g.) 0.207 (log(diam93))^2 attempt call function named 0.207 ...
for example:
> 1 + 2*(3) [1] 7 > 1 + 2 (3) error: attempt apply non-function your (unreproducible) expression should read:
censusdata_20$agb93 = wd * exp(-1.239 + 1.980 * log (diam93) + 0.207* (log(diam93))^2 - 0.0281*(log(diam93))^3) mathematica computer system know of allows juxtaposition used multiplication ...
Comments
Post a Comment