Timeline for How to convert a frequency table into a vector of values?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 16, 2011 at 0:13 | vote | accept | Rob | ||
Sep 15, 2011 at 7:14 | history | edited | Felix S | CC BY-SA 3.0 |
Adopted example to the numbers of the OP
|
Sep 15, 2011 at 6:40 | comment | added | caracal |
Or, given a simple frequency table for vec <- sample(1:5, 20, TRUE) created by table() : rep(names(table(vec)), table(vec)) . The result then needs to be converted with as.numeric() if the categories are actual numbers.
|
|
Sep 15, 2011 at 4:44 | history | answered | Felix S | CC BY-SA 3.0 |