Dear,

I have a data frame melted from a list of matrices (melt from reshape
package), then I impute some missing values and then want to tabulate
the data again to the array (or list, doesn't matter) of matrices form.
However when using xtabs function it orders my rows alphabetically and
apparently doesn't take "reorder = FALSE" option or anything like it.
Is there anything I can do to stop it from doing so?

Relevant parts of code:

matrices.m <- melt(combined_list)

matrices.m_i[is.na(matrices.m_i$value),]$value <- predictions

matrices  <- xtabs(value ~ location + variable + week, data =
matrices.m_i)

-- 
while(!succeed) { try(); }

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to