search for: dow_num

Displaying 3 results from an estimated 3 matches for "dow_num".

Did you mean: row_num
2011 Mar 09
2
Complex sampling?
...til the final selection is made. Here is an example of what I want to do, beginning at WEEK 1. I would prefer to do this without using a loop, if possible. sample frame: [3,4,5,6,7] --> [4,5,6] --> [4],[1,2,3,(4),5,6] --> [1,2,4,5,6] --> for each WEEK in dataframe Randomly sample 2 DOW_NUM without replacement from each WEEK ( () = no two identical DOW_NUM can be sampled in the same WEEK) sample = {3,7}, {5,6}, {4,3}, {1,5}, --> for each WEEK in dataframe Thanks you, Mike DATE DOW DOW_NUM WEEK 2 2011-05-02 Mon 3 1 3 2011-05-03 Tue 4 1 4 20...
2011 Feb 10
1
Conditional sampling
...1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L), .Label = c("5/3/2010", "5/4/2010", "5/5/2010", "5/6/2010", "5/7/2010"), class = "factor"), DOW_NUM = c(3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 7L, 7L, 7L, 7L, 7L, 7L, 7L, 7L), WEEK = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1...
2011 Feb 17
0
Data frame sampling
...14746, 14746, 14746, 14746, 14747, 14747, 14747, 14747, 14747, 14747, 14747, 14747, 14748, 14748, 14748, 14748, 14748, 14748, 14748, 14748, 14749, 14749, 14749, 14749, 14749, 14749, 14749, 14749, 14750, 14750, 14750, 14750, 14750, 14750, 14750, 14750), class = "Date"), DOW_NUM = c(3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4,...