search for: fillno2_v2

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

Did you mean: fillno1_v2
2011 Dec 12
0
using dcast to reshape a DF from long to wide with multiple measured variables per obs
...nd 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, 15095L), fillno5_v3 = c(NA, 30L, 30L), fillno6_v2 = c(NA, NA, 151...