Re: [R] sorting means for plot in descending order (Luis Fernando Garc?a)

2015-04-09 Thread Manel Amado Martí
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

Re: [R] Converting charter string to vector of numbers (Turgidson)

2015-03-26 Thread Manel Amado Martí
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

Re: [R] 16. Database connection query (Lalitha Kristipati)

2015-02-09 Thread Manel Amado Martí
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