I am getting an error message trying to run fitTimeSeries from metagenomeSeq:
fitTimeSeries(obj, feature=1, class="Class", time="Time" , id="Sample")
Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, :
min not meaningful for factors
I tried changing "Time" to numeric, thinking that perhaps that was the problem:
fitTimeSeries(obj, feature=1, class="Class", time = as.numeric("Time"), id="Sample")
But got this error message:
Error in `[.data.frame`(pData(obj), , time) : undefined columns selected
In addition: Warning message:
In `[.data.frame`(pData(obj), , time) : NAs introduced by coercion
I've checked that "Class", "Time" and "Sample" are all contained in the pData, so I'm not sure why the columns are undefined...
Thanks very much!