Re: [R] to run an older version of R on my machine

2019-05-23 Thread Alfredo Cortell
Hi Bogdan, The way I do this is the following: I have different R versions installed, and then I downloaded and use Rswitch to change between versions. You just open it, select the version you want, and R will open in that version directly. It works with R and Rstudio in a MacOS HighSierra, althou

Re: [R] Convert a character to numeric

2019-04-09 Thread Alfredo Cortell
Hi Bienvenue, I believe that your problem is that R can't translate "one" to a number, because it is not a number. R could translate to numeric for example this vector, where numbers are expressed as strings, c("1","4","7") but "one" is just letters put together, therefore R can't understand the

[R] DNAbin

2018-10-16 Thread Alfredo Cortell
Dear all, Is it possible to convert a data frame with variables (columns) and the number of persons for each variable at a given time at the day (rows) to DNAbin object type, so that I can calculate Tajima's divergence? I've been trying, but I just can't find the way. Thank you very much, V1 V2

[R] DNAbin

2018-10-16 Thread Alfredo Cortell
Hola, buenos dias. Escribo porque me gustarĂ­a saber si puedo convertir un data frame que consiste en variables (indicadas por columnas) y en filas (el nĂºmero de personas que tienen cada variable en determinada hora del dia.) en un tipo de objeto DNAbin para poder calcular la divergencia de Tajima.