search for: 14975l

Displaying 1 result from an estimated 1 matches for "14975l".

Did you mean: 14975
2011 Dec 12
0
using dcast to reshape a DF from long to wide with multiple measured variables per obs
...eeds 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 number.   Essentially, I would like the DF to eventually assume the following strucutre:   DFnew <- structure(list(person = 1:3, fillno1_v2 = c(14975L, 14975L, 14975L ), fillno1_v3 = c(30L, 30L, 30L), fillno2_v2 = c(15006L, 15006L, 15006L), fillno2_v3 = c(30L, 30L, 30L), fillno3_v2 = c(15034L, 15034L, 15034L), fillno3_v3 = c(30L, 30L, 30L), fillno4_v2 = c(15065L, 15065L, 15065L), fillno4_v3 = c(30L, 30L, 30L), fillno5_v2 = c(NA, 15095L, 15095...