You’re missing *
s in the last two terms of your expression, so R is interpreting (e.g.) 0.207 (log(DIAM93))^2
as an attempt to call a function named 0.207
…
For example:
> 1 + 2*(3) [1] 7 > 1 + 2 (3)
Error: attempt to 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 is the only computer system I know of that allows juxtaposition to be used for multiplication …
Related Posts:
- R Hex to RGB converter
- IndexError: too many indices for array
- Error in file(file, “rt”) : cannot open the connection [duplicate]
- What does %>% function mean in R?
- t-stat for feature selection
- Could not find function “%<>%” with dplyr loaded
- How to join (merge) data frames (inner, outer, left, right)
- Interpreting “condition has length > 1” warning from `if` function
- rbind error: “names do not match previous names”
- rbind error: “names do not match previous names”
- Plotting with ggplot2: “Error: Discrete value supplied to continuous scale” on categorical y-axis
- ggplot2 error : Discrete value supplied to continuous scale
- ggplot2 line chart gives “geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?”
- Error: could not find function “%>%”
- How to print an exception in Python?
- R: Using equation with natural logarithm in nls
- Counting the number of elements with the values of x in a vector
- What does “Error: object ‘
‘ not found” mean? - mean() warning: argument is not numeric or logical: returning NA
- Error in Confusion Matrix : the data and reference factors must have the same number of levels
- Having trouble setting working directory
- How to find the statistical mode?
- Error in colMeans(x, na.rm = TRUE) : ‘x’ must be numeric in KNN classification
- Error in file(file, “rt”) : invalid ‘description’ argument in complete.cases program
- Editing legend (text) labels in ggplot
- Add color to boxplot – “Continuous value supplied to discrete scale” error
- case_when in mutate pipe
- Error in plot.window(…) : need finite ‘xlim’ valuescc
- Logistic Regression on factor: Error in eval(family$initialize) : y values must be 0 <= y <= 1
- Longer object length is not a multiple of shorter object length?
- Error in lm.fit(x,y,offset = offset, singular.ok,…) 0 non-NA cases with boxcox formula
- dim(X) must have a positive length when applying function in data frame
- Basic – T-Test -> Grouping Factor Must have Exactly 2 Levels
- Persistent invalid graphics state error when using ggplot2
- How to debug “contrasts can be applied only to factors with 2 or more levels” error?
- Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, …) : NA/NaN/Inf in ‘y’, tried every possible way
- What does the “On Error Resume Next” statement do?
- R t-test Grouping factor must have exactly 2 levels error
- Understanding the order() function
- Subscript out of bounds – general definition and solution?
- Manually colouring plots with `scale_fill_manual` in ggplot2 not working
- Plot a line graph, error in xy.coords(x, y, xlabel, ylabel, log) : ‘x’ and ‘y’ lengths differ
- Calculate correlation for more than two variables?
- Convert a list to a data frame
- Function to clear the console in R and RStudio
- Sum rows in data.frame or matrix
- Invalid factor level, NA generated warning
- R: “Unary operator error” from multiline ggplot2 command
- invalid type (list) for variable
- not a Stata version 5-12 .dta file
- How to subset a Data frame column wise using column names?
- No non-missing arguments warning when using min or max in reshape2
- Javascript Uncaught TypeError: Cannot read property ‘0’ of undefined
- Having trouble setting working directory
- Convert date-time string to class Date
- Linear model function lm() error: NA/NaN/Inf in foreign function call (arg 1)
- Generate a set of random unique integers from an interval
- How to move or position a legend in ggplot2
- Failed to load the native TensorFlow runtime – TensorFlow 2.1
- Singularity in backsolve at level 0, block 1 in LME model
- “installation of package ‘FILE_PATH’ had non-zero exit status” in R
- Nested ifelse statement
- Convert categorical variables to numeric in R
- Plot multiple lines (data series) each with unique color in R
- Plot two graphs in same plot in R
- How to overcome error:”attempt to set ‘colnames’ on an object with less than two dimension” in xts object
- How to get summary statistics by group
- Run R script from command line
- How to avoid “Error in stripchart.default(x1, …) : invalid plotting method” error?
- ‘height’ must be a vector or a matrix. barplot error
- What causes an R script to get Killed?
- What’s the difference between facet_wrap() and facet_grid() in ggplot2?
- ggplot2, facet_grid, free scales?
- dplyr mutate with conditional values
- Getting invalid model formula in ExtractVars when using rpart function in R
- R Error (from NA’s to 0): duplicate subscripts for column in Data Frame
- Error in file(filename, “r”, encoding = encoding) : cannot open the connection
- incorrect number of subscripts on matrix in R
- Error in rbind(deparse.level, …) : numbers of columns of arguments do not match R
- Correct syntax for mutate_if
- Plotting data in R; error: default method not implemented for type ‘list’
- R apply function with multiple parameters
- Changing fonts in ggplot2
- Error in
: target of assignment expands to non-language object - run a for loop in parallel in R
- Error in na.fail.default: missing values in object – but no missing values
- Error: Invalid number of ‘breaks’ in R
- How to eliminate “NA/NaN/Inf in foreign function call (arg 7)” running predict with randomForest
- Batch convert columns to numeric type
- Error in x[[i]] : recursive indexing failed at level 2
- Merge error : negative length vectors are not allowed
- What do these R glm error messages mean: “Error: no valid set of coefficients has been found: please supply starting values”
- How to avoid “operations are possible only for numeric, logical or complex types” when computing top 3 elements in each group
- why nrow(dataframe) and length(dataframe) in r give different results?
- Meaning of objects being masked by the global environment
- Difference between as.POSIXct/as.POSIXlt and strptime for converting character vectors to POSIXct/POSIXlt
- cbind warnings : row names were found from a short variable and have been discarded
- Eclipse IDE – Error: Build path specifies execution environment Java SE 1.7
- How do I print a hexadecimal number with leading 0 to have width 2 using sprintf?
- How to calculate combination and permutation in R?