search for: fillno

Displaying 1 result from an estimated 1 matches for "fillno".

Did you mean: fileno
2011 Dec 12
0
using dcast to reshape a DF from long to wide with multiple measured variables per obs
..."2011-02-01", "2011-03-01", "2011-04-01", "2011-05-01", "2011-01-01", "2011-02-01", "2011-03-01", "2011-04-01", "2011-05-01", "2011-06-01") v3 <- rep(30, 15) DF <-data.frame(person, v2, v3) DF$fillno <-  with(DF, ave(person, person, FUN = seq)) DF$v2 <- as.Date(DF$v2) DF$v2 <- as.numeric(DF$v2)   It represents data in long format that needs to be reshaped by person, with each fill number+v2 and fill number+v3 as a column, with missing values in cases where a person does not have a fill...