Skip to content
Prev 32267 / 398506 Next

conversion of a list element to a vector

Philippe Hup? wrote:
Need to use "[[" here. liste[var] is still a list. liste[[var]] is a 
vector. I would avoid using "var" as a variable name since it is also 
the function for computing the variance.
lapply(liste, unique) returns a list of length(liste) containing the 
unique values of each element in the list.

Regards,
Sundar