Tag Archives: vectors

From a long to a wide R data frame, with array values

From a “long” data frame with columns containing the names of measured properties and corresponding vectors of values, attempting to make a “wide” data frame with a column for each measured property. Appears as though the cast() function of the reshape … Continue reading

Posted in data munging, R | Tagged , , , , ,

Storing numeric vectors (or arrays) in fields of an R data frame

To store variable-length data vectors and corresponding single-value data in separate fields of the same row of an R data frame, add a new modeless column then populate it: R recognizes that the vector’s class is numeric, but it is necessary … Continue reading

Posted in data munging, R | Tagged , , , ,