> x=3 > `class<-`(x,'something')#this command prints [1] 3 attr(,"class") [1] "something" > x=3 > class(x)='something'#this command doesn't print anything
The first of the above two commands print the content of 'x' but the second doesn't, although both of them set the argument 'x'. I'm wondering which is method is called in the latter one. ______________________________________________ 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.