Displaying 3 results from an estimated 3 matches for "convertin".
Did you mean:
converting
2006 Feb 21
2
Convertin rows of a matrix to a list
Hello!
I would like to convert rows of a matrix to a elements of a list.
#For example, if I have
mat<-matrix(1:100,ncol=5, nrow=20)
#I can do:
list<-apply(mat,1,list)
list
#however this is not quite what I want. To get what I want, I have to do:
list<-lapply(list,function(x)x[[1]])
list
Is there a faster way?
Best regards,
Ales Ziberna
2008 Feb 08
1
convertin a data frame column from character to numeric
I have a data.frame with all character columns, I would like to convert the last two columns into numeric.> x[1:5, ] chrN start end 1 chr1 71310034 71310064 2 chr14 23354088 23354118 3 chr14 71310034 71310064 4 chr15 37759058 37759088
5 chr22 18262638 18262668 > apply(x, 2, FUN = mode) chrN start end
2006 Jun 29
1
tool for convertin mbox to maildir
Hello!
Can anybody advise me nice and well-tested script for converting mbox to
maildir format that saves all message flags ?