I have observations in Value and Count form (frequency information)
value<- c(0,1,3,6,7,8) count <-c (3,2,1,1,1,3)
I want the data ("value") in one column, where I have 3 counts of 0, and 2 counts of 1, one count of 3 etc. I want all of my raw values in one column. Like this:
freq_of_values <- c(0, 0, 0, 1, 1, 3, 6, 7, 8, 8, 8)
value<- c(0,1,3,6,7,8)
count <- c(3,2,1,1,1,3)
I've searched and tried the (dplyr) merge and sort functions but am not getting what I want. Perhaps my terminology while searching wasn't just right. Appreciate any help!!