I'm encountering an error while working on my R code, and I'm hoping to get some guidance on how to resolve it. The error message I'm receiving is:
"Error in class(ff) <- "formula" : attempt to set an attribute on NULL"
I have read an excel sheet using the "readxl" package, stored it in an object named "data.pre", converted it from a tibble dataframe to a traditional dataframe to avoid errors and checked for missing data and null values using: "sum(is.na(data.pre))" and "sum(is.null(data.pre))", which have returned 60 and 0, respectively.
I am very new to R and any guidance on how I can identify and overcome this problem would help a lot.