Commit 1fc75946 authored by dmattek's avatar dmattek

Strings instead of explicit column names in formula interface of dcast

parent 2e5598fb
......@@ -741,9 +741,9 @@ shinyServer(function(input, output, session) {
return(NULL)
#print(loc.dt)
loc.out = dcast(loc.dt, id ~ realtime, value.var = 'y')
loc.out = dcast(loc.dt, as.formula(paste0(COLID, "~", COLRT)), value.var = COLY)
#print(loc.out)
loc.rownames = loc.out$id
loc.rownames = loc.out[[COLID]]
loc.out = as.matrix(loc.out[, -1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment