Dear William,
Following Jim Holtman's solution to your previous post, you can do something
similar to
Bill <- 1:100 # test data
Bill.p <- split(Bill, rep(1:10, each=10))
sapply(Bill.p, function(x) mean(x)/0.8)
1 2 3 4 5 6 7 8 9 10
6.875 19.
This is just a slight modification of a question I asked earlier. Thanks to all
the responders.
I have a data set(Bill) of with 1 variable (var1), with 100 obs that are in
ascending order. I want to sample every 10 observations and save them in 10
different groups such as Group1 is obs 1-10
2 matches
Mail list logo