Re:
Try with sort() function
sort(x, decreasing = FALSE, ...) As you can see, u can set the argument
decreasing=TRUE, then, it'll sort by decreasing order.
For more details, call:
help(sort) under R console
Message: 23
Date: Thu, 9 Apr 2015 03:11:37 -0300
From: Luis Fernando Garc?a
Hi,
See that strsplit() retorns a list object. Then, to transform a character
vector (that is an element into the list), to a numèric vector, you should
access directly to that element to aply as.numeric. The code is:
aux-0.5 1 2 3 4
vectnum-strsplit(aux, )
class(vectnum) ## see that is
Hi,
You can read the R Data Import / Export Manual, that comes within the help
files for the R Standard. I recommend specially the chapter 4, where you'll
found the generical guidelines to connect to databases. At 4.3, RODBC Package,
or DBI packages should be right to you.
Regards,
Manel
3 matches
Mail list logo