Re: [R] Correctly applying aggregate.ts() [RESOLVED]

2018-09-07 Thread Rich Shepard
On Fri, 7 Sep 2018, Bert Gunter wrote: Well, let's see: "monthly.rain <- aggregate.ts(x = dp['sampdate','prcp'], by = list(month = \ substr(dp$sampdate, 1, 7)), FUN = sum, na.rm = TRUE)" 1. x is a data frame, so why are you using the time series method? Perhaps you need to study S3 method

Re: [R] Correctly applying aggregate.ts()

2018-09-07 Thread Bert Gunter
Clarification: When using the formula interface, no subscripting is needed. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Sep 7, 2018 at 3:25 PM Bert

Re: [R] Correctly applying aggregate.ts()

2018-09-07 Thread Bert Gunter
Well, let's see: "monthly.rain <- aggregate.ts(x = dp['sampdate','prcp'], by = list(month = \ substr(dp$sampdate, 1, 7)), FUN = sum, na.rm = TRUE)" 1. x is a data frame, so why are you using the time series method? Perhaps you need to study S3 method usage in R. 2. You have improperly

[R] Correctly applying aggregate.ts()

2018-09-07 Thread Rich Shepard
I've read ?aggregate and several blog posts on using aggregate() yet I still haven't applied it correctly to my dataframe. The sample data are: structure(list(sampdate = c("2005-01-01", "2005-01-02", "2005-01-03", "2005-01-04", "2005-01-05", "2005-01-06", "2005-01-07", "2005-01-08",

Re: [R-es] Problemas para instalar Librería (RODBC)

2018-09-07 Thread Javier Marcuzzi
Estimados RODBC, yo recuerdo algunos problemas viejos, la razón estaba en el sistema operativo que tenía que tener configurado ODBC, sin seguir el hilo de la conversación, de pronto puede presentarse un problema semejante al que yo tuve en aquellos días. Javier Marcuzzi El vie., 7 sept. 2018 a

Re: [R] Selecting random subset by ID

2018-09-07 Thread Jeff Newmiller
IMO it is worth pointing out that you don't have to write code that solves your problem (else why have this list?) but this whole communication thing works best when you write code that creates a mock set of data that illustrates what you are starting from and some mock output. The mock input

Re: [R] Selecting random subset by ID

2018-09-07 Thread Bert Gunter
?sample Should get you started We expect you to first make an effort to learn about and write your own code, rather than asking us to write it for you. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka

Re: [R-es] Problemas para instalar Librería (RODBC)

2018-09-07 Thread Javier Nieto
No que yo sepa. Si RMySQL es odbc en el back lo desconozco pero no se hace como tal una conexión odbc como con RODBC la cual puedes utilizar no solo con R Saludos De: Jesús Para Fernández Enviado: viernes, 7 de septiembre de 2018 01:42:49 p. m. Para: juan

Re: [R-es] Problemas para instalar Librería (RODBC)

2018-09-07 Thread Jesús Para Fernández
Pero RMysql no es tb una conexion odbc?? Obtener Outlook para Android From: R-help-es on behalf of Javier Nieto Sent: Friday, September 7, 2018 7:47:02 PM To: juan manuel dias; Carlos Ortega Cc: Lista R Subject: Re: [R-es] Problemas para

[R] Selecting random subset by ID

2018-09-07 Thread David Joubert
Hello R users, I am working with a large dataset, including roughly 50 000 sequential observations (variable "count") for 8000 individuals (variable "id"). The dataset is very unbalanced, meaning that some individuals have few observations and others have many. Because I plan on running

Re: [R] histogram in GNU R....

2018-09-07 Thread Peter Langfelder
A simpler short term solution is to execute dev.off() and look for the plot in file Rplots.pdf in the current directory. Depending on the OS of the local computer, you should be able to point a file browser at the EC instance and simply click the file to open in in a pdf viewer on the local

Re: [R-es] Problemas para instalar Librería (RODBC)

2018-09-07 Thread juan manuel dias
Muchas gracias! El 7 de septiembre de 2018, 14:47, Javier Nieto escribió: > Hola > > Creo que deberías trabajar con la última versión de R. Si no esta > disponible trata con: > > > install.packages("RODBC", type = "source") > > > > Por otro lado, no se cual sea tu situación o la base de datos a

Re: [R] histogram in GNU R....

2018-09-07 Thread William Dunlap via R-help
You may have to install X11 stuff to your ec2 instance. E.g., googling for "ec2 X11 forwarding" showed things like the following: Re: X11 forwarding to access AWS EC2 Linux instance Posted by: wilderfield Posted on: Apr 5, 2018 11:31 AM

Re: [R-es] Problemas para instalar Librería (RODBC)

2018-09-07 Thread juan manuel dias
Hola, Tengo la versión 3.5.1 instalada y no me dejaba tampoco, por eso desde RStudio configuré la 3.3.1. Muchas gracias. El 7 de septiembre de 2018, 13:35, Carlos Ortega escribió: > Hola, > > R ya está en la versión 3.5.1 y tú tienes la 3.3.1. > Las versiones antiguas de los paquetes están: > >

Re: [R-es] Problemas para instalar Librería (RODBC)

2018-09-07 Thread Carlos Ortega
Hola, R ya está en la versión 3.5.1 y tú tienes la 3.3.1. Las versiones antiguas de los paquetes están: - Linux: https://cran.r-project.org/src/contrib/Archive/RODBC/ - Windows: h ttps://cloud.r-project.org/bin/windows/contrib/3.3/RODBC_1.3-15.zip Saludos, Carlos Ortega

Re: [R] histogram in GNU R....

2018-09-07 Thread MacQueen, Don via R-help
In addition to the other suggestions, try typing x11() before using hist(). That *should* start a graphics window. If it does not, then type capabilities() and see if "X11" is TRUE. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550

[R-es] Problemas para instalar Librería (RODBC)

2018-09-07 Thread juan manuel dias
Hola, Puede ser que la RODBC no corra en la versión 3.3.1? Abajo copio el error. Sabe alguien que puede estar pasando? *Warning in install.packages :* * package ‘RODBC’ is not available (for R version 3.3.1)* *Warning in install.packages :* * unable to access index for repository

Re: [R-es] R_tempDir

2018-09-07 Thread Javier Marcuzzi
Estimados Finalmente el problema encontró solución, reinstale el sistema y desde cero programa por programa. Ahora anda. Javier Marcuzzi El mar., 4 sept. 2018 a las 20:35, Javier Marcuzzi (< javier.ruben.marcu...@gmail.com>) escribió: > > Estimados > > Adjunto dos capturas de pantalla donde

Re: [R-es] Construir matriz de distancias

2018-09-07 Thread Marcelino de la Cruz Rot
Vaya, qué mala suerte. Yo lo probé en la consola de Windows y funcionó sin problema. ¿Tal vez sea por la versión  de alineR? La mía es la 1.1.4. Saludos El 07/09/2018 a las 11:38, Juan Abasolo escribió: Me encantaría saber pensar así de una. Creo que entiendo bien lo que me decís, pero no lo

Re: [R] Efficient way of loading files in R

2018-09-07 Thread Deepa
Martin, I forgot to mention. The same command works fine when I try,gseEset2 <- getGEO('GSE76896') , without saving the file to a destination folder . Output: Found 1 file(s) GSE76896_series_matrix.txt.gz trying URL '

Re: [R] Efficient way of loading files in R

2018-09-07 Thread Deepa
I am also providing the output that I obtain for your kind reference, gseEset2 <- getGEO('GSE76896', destdir = "data/")[[1]] Found 1 file(s) GSE76896_series_matrix.txt.gz Using locally cached version: /data//GSE76896_series_matrix.txt.gz Parsed with column specification: cols( .default =

Re: [R] Efficient way of loading files in R

2018-09-07 Thread Deepa
I already posted a similar issue on bioconductor. https://support.bioconductor.org/p/112607/#112634 Couldn't find a solution. On Fri, Sep 7, 2018 at 3:45 PM Martin Morgan wrote: > Ask on the Bioconductor support site https://support.bioconductor.org > > Provide (on the support site) the output

Re: [R] Efficient way of loading files in R

2018-09-07 Thread Martin Morgan
Ask on the Bioconductor support site https://support.bioconductor.org Provide (on the support site) the output of the R commands library(GEOquery) sessionInfo() Also include (copy and paste) the output of the command that fails. I have > gseEset2 <- getGEO('GSE76896')[[1]] Found 1 file(s)

Re: [R] Efficient way of loading files in R

2018-09-07 Thread Amit Mittal
getgeo() seems to be a custom routine. Import the file in reader and confirm that's a CSV file from Excel. If this is a non standard input, custom subroutine is creating new constraints. Usually R has no problem till workspace is 1 gb On Fri 7 Sep, 2018, 15:38 Deepa, wrote: > Hello, > > I am

Re: [R] Efficient way of loading files in R

2018-09-07 Thread Deepa
The following is the system configuration: Architecture: x86_64 CPU op-mode(s):32-bit, 64-bit Byte Order:Little Endian CPU(s):4 On-line CPU(s) list: 0-3 Thread(s) per core:2 Core(s) per socket:2 Socket(s): 1 NUMA node(s):

[R] Efficient way of loading files in R

2018-09-07 Thread Deepa
Hello, I am using a bioconductor package in R. The command that I use reads the contents of a file downloaded from a database and creates an expression object. The syntax works perfectly fine when the input size is of 10 MB. Whereas, when the file size is around 40MB the object isn't created.

Re: [R-es] Construir matriz de distancias

2018-09-07 Thread Juan Abasolo
Me encantaría saber pensar así de una. Creo que entiendo bien lo que me decís, pero no lo puedo poner en marcha en mi computadora, por algo que no sé qué será. Cuando llego a: > cosa<-aline(w1=x,w2=y) En RStudio me dice que R sufrió algo. Probé directamente desde la consola linux y también: >

Re: [R] histogram in GNU R....

2018-09-07 Thread peter dalgaard
You are most likely plotting to a non-screen device. Check dev.list() after the hist(), and then the documentation for that device. It's probably pdf, and after quitting R, you should find that a file Rplots.pdf has been created. -pd > On 7 Sep 2018, at 10:26 , akshay kulkarni wrote: > >

Re: [R] histogram in GNU R....

2018-09-07 Thread Ivan Krylov
On Fri, 7 Sep 2018 08:26:22 + akshay kulkarni wrote: > when I type hist(xht), it goes to the next prompt. More importantly, > there is no error message. So, the most probable conclusion is that > the command gets executed Yes, hist() returns its value invisibly (try typing "? invisible" in

Re: [R-es] Construir matriz de distancias

2018-09-07 Thread Marcelino de la Cruz Rot
Hola Juan, # No conozco ninguna función que haga lo que propones, pero no es muy difícil implementarlo en R. # Suponiendo que estos son tus datos de partida, x0<- c("cansado", "cansadisimo","cansau","reventado","reventao",NA,"canso") namesx0<-LETTERS[1:7] # Lo de los NA's deberías

[R-es] Construir matriz de distancias

2018-09-07 Thread Juan Abasolo
¡Buenas, listeros! Supongo que lo que planteo es muy básico, pero estoy trabado y no lo veo. Tengo una función que da la distancia lingüística ALINE, alineR::aline(), pero que no genera matrices. Tengo que hacer matrices de distancias ALINE de unos datos tipo esto: A cansado B cansadísimo C