search for: assymmetry

Displaying 1 result from an estimated 1 matches for "assymmetry".

Did you mean: asymmetry
2009 Mar 15
0
Assigning to factor[[i]]
...gives no error but results in an f which is not a factor at all: f <- fac; f[[1]]<-list(); class(f); dput(f) [1] "list" list(list(), 3L, 2L) I can see that being able to modify the underlying vector of a classed object directly would be very valuable functionality, but there is an assymmetry here: f[[1]]<- modifies the underlying vector, but f[[1]] accesses the classed vector. Presumably you need to do unclass(f)[[1]] to see the underlying value. But on the other hand, unclass doesn't have a setter (`unclass<-`), so you can't say unclass(f)[[1]] <- ... I have not be...