search for: foonew_foo

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

2001 Mar 15
2
Alternative to list()
Hi, Suppose I have a dataset with 10 columns, let's call it "foo". Now if I want to extract out only column 2 ~ 8, then I know I can use either: foo[ ,2:8] or fooNew <- list( foo[ ,2:8] ) (Is there any other alternative, just out of curiosity?) But, if I only want, say, column 1, 4 and 7, I tried: fooNew <- list( x = foo[ ,1], y = foo[ ,4], z = foo[ , 7] )