search for: mylis

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

Did you mean: mylist
2009 Dec 01
1
vector as data.frame element?
It seems that an vector or other non elemental data type can not be assigned to an element in the data.frame. I'm wondering what is the walk around. > li=data.frame(a=c(0,1), b=c('x','y')) > li$b[[1]]= 'x' > li$b[[2]]<- c('y','z') Error in li$b[[2]] <- c("y", "z") : more elements supplied than there are to replace