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

R. Michael Weylandt michael.weylandt at gmail.com
Mon Oct 31 16:20:27 CET 2011


This isn't reproducible for a few reasons, but notably that you didn't
provide data or tell us which vif() function you are using. (There are
a few from different packages). Can you clarify which package and see
if it can be done with simulated data / post a working sample of your
data?

It may just be a bug in RStudio: can you reproduce this in a command
line session?

Michael

On Mon, Oct 31, 2011 at 12:50 AM, arunkumar1111 <akpbond007 at gmail.com> wrote:
> 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 at 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.
>



More information about the R-help mailing list