powered by
Wrapper for various standard operations applied on ovariable data from the OpasnetBase.
ovariable
tidy(data, objname = "", idvar = "Obs", direction = "wide", widecol = NULL, base1 = FALSE)
data.frame to be formatted
data.frame
character prefix to be added to variable specific rows like "Result" and "Unit"
character
reshape idvar
reshape
reshape direction
reshape timevar, specifiec column to be expanded
compatibility with obsolete database
Returns a data.frame
Uses reshape, renames "Result" and "Unit" columns and gets rid of unwanted columns from old database merged data.
See also: http://en.opasnet.org/
var1 <- opbase.data("Op_en5674") var1 <- tidy(var1, "var1") var1
Run the code above in your browser using DataLab