[R] conflicts Var names
Uwe Ligges
ligges at statistik.uni-dortmund.de
Thu Mar 30 09:34:22 CEST 2006
Fred J. wrote:
> Dear R users
>
> I have read somewhere which I don't remember that some variable names
> are not to be used for conflict avoidance. and those were (c, q, T, F,
> T)
> I ran this
> > conflicts(detail=TRUE)
> $.GlobalEnv
> [1] "ts"
>
> $"package:methods"
> [1] "body<-"
>
> $"package:stats"
> [1] "ts"
>
> $"package:base"
> [1] "body<-"
>
> I don't note ts was in the list of to-avoid "oh I think it was some
> tips and tricks relating to R". at this point, it is recommended to
> rename my ts variable in my code?
Well, it is nice to avoid such names, but since R distinguishes
functions vs. data, you can live with it if you are aware of the problem.
Uwe Ligges
> thank you
>
>
> ---------------------------------
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list