Re: [R] Sampling question

2013-11-05 Thread arun
Hi, You may try: dat1 <- structure(list(SubID = 1:8, CSE1 = c(6L, 6L, 5L, 5L, 5L, 5L, 3L, 3L), CSE2 = c(5L, 4L, 5L, 4L, 6L, 4L, 6L, 6L), CSE3 = c(6L, 7L, 5L, 3L, 7L, 3L, 6L, 6L), CSE4 = c(2L, 2L, 5L, 4L, 5L, 6L, 3L, 3L), WSE1 = c(6L, 6L, 5L, 4L, 6L, 4L, 6L, 6L), WSE2 = c(2L, 6L, 5L, 4L, 4L, 3L

[R] Sampling question

2011-01-17 Thread Chris Mcowen
Dear list i have a sample question I have a dataframe of 1500 species and 13 life history traits. small example code: traits <- data.frame(letters[1:9], sample(letters, 9), sample(letters, 9), sample(letters, 9), sample(letters, 9), sample(letters, 9),