This post has NOT been accepted by the mailing list yet.
Hi,

  I'm passing the input parameters and calculating the linear regression.
some time i'm getting the error

Error in dim(data) <- dim : attempt to set an attribute on NULL.

But when i restart my R studio, then it runs.
Please help to resolve this problem.

My code looks like

dataset <- read.csv("C:/data/data1.csv")
formula12= "Y~X1+X2"
LinearRegression <- lm(formula=formula12,data=dataset, singular.ok=TRUE)
vif(LinearRegression)

Please help me to solve this issue 

--
View this message in context: 
http://r.789695.n4.nabble.com/Error-in-dim-data-dim-attempt-to-set-an-attribute-on-NULL-tp3954811p3954811.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to