search for: q_list

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

Did you mean: _list
2011 Nov 18
1
R: writing data from one matrix into another with keeping NA's
...d it will definitely come in handy at some time. Best regards, Karl ##Loading Packages library(qpcR) data = c(1,NA, 2, 3) row=2 col=28 x <- matrix(data=data, nrow=row, ncol=col) colnames(x) <- c(1:28) x_sorted <- t(apply(x, 1, sort, decreasing=T, na.last=T)) q_list <- matrix(data = 0, nrow= nrow(x), ncol=1) ################### ##DETERMINING LENGTH OF THE QUINTILES q <- apply((!is.na(x_sorted)),1, sum) q_list[q_list==0] <- q q_list = q_list/5 ##Function to check wether q is full number check.integer <- function(N){ !length(...