search for: refobs

Displaying 1 result from an estimated 1 matches for "refobs".

2011 Aug 16
1
how to sort the levels of a table
...(nr. 1 to 20) versus the reference (nr. 21) via the following code: ## observations of the reference obsValues<-factor(unlist(input[,-c(1,ncol(input))])) ## observations of the observers refValues<-factor(input[,ncol(input)]) ## data.frame that relates observations of observers and reference RefObs<-data.frame(refValues, obsValues) mtx<-table( RefObs$obsValues, RefObs$refValues, dnn=c("observers", "reference"), useNA=c("always") ) And now the problem: I need to sort the levels/classes of the table. Bo...