Re: [R] R STUDIO crashing

2016-05-18 Thread Shige Song
One thing for sure: It's not the fault of R nor Rstudio (because they are doing fine on other people's computers, mine included). You can probably get some help on the Rstudio support forum. On Wed, May 18, 2016 at 6:37 PM, rezvan hatami via R-help < r-help@r-project.org> wrote: > Hi there > I

[R] Install GARPFRM package

2016-05-18 Thread Saba Sehrish via R-help
Hi I am trying to install GARPFRM package to R (version: 3.3.0) by following steps: (a) install.packages("GARPFRM", repos="http://R-Forge.R-project.org;) It gives following Warning messages: 1: running command '"C:/PROGRA~1/R/R-33~1.0/bin/i386/R" CMD INSTALL -l

Re: [R] gam.check() NA results (k-index, p-value) of a gam logistic regression model

2016-05-18 Thread Fotis Fotiadis
Dear Prof. Wood, Thank you for your reply! Best, Fotis On Wed, May 18, 2016 at 12:05 PM, Simon Wood wrote: > Dear Fotis, > > The test is a randomization test, based on comparing differences of > residuals, ordered with respect to the covariate of the smooth, to >

Re: [R] ggplot2 not displaying graph in RH7 RStudio Server 3.2.3

2016-05-18 Thread phiroc
Here's a minimal example that displays a bar chart in RStudio 3.2.4 for Windows, but not in RStudio Server 3.2.3 on RH Linux 7: --- R Code --- library(ggplot2) a <-

[R] RSTUDIO keeps crashing-please help me

2016-05-18 Thread rezvan hatami via R-help
Hi there I have been using R for a while now. I am doing my PhD project with it. Recently, it keeps crashing, mostly when I draw a graph and use XYPLOT code. I even spent some money on cleaning registry, checking ram, deleting unnecessary files from working directory. I used "plot(cars) and 

[R] R STUDIO crashing

2016-05-18 Thread rezvan hatami via R-help
Hi there I have been using R for a while now. I am doing my PhD project with it. Recently, it keeps crashing, mostly when I draw a graph and use XYPLOT code. I even spent some money on cleaning registry, checking ram, deleting unnecessary files from working directory. I used "plot(cars) and 

Re: [R] ggplot2 not displaying graph in RH7 RStudio Server 3.2.3

2016-05-18 Thread Jeff Newmiller
Couple of points: 1) this is the R-help mailing list. If there is a problem with RStudio, nice as it is it has its own support area. If the bug can be reproduced without RStudio then this list or one of its sister lists are appropriate. 2) I don't have RedHat, but I can try this later at home

Re: [R] Vectorised operations

2016-05-18 Thread Jim Lemon
Hi John, I may be misunderstanding what you want, but this seems to produce the output you specify: A<-sample(-10:100,100) i<-rep(1:10,c(5:13,19)) # replace the last value of x with the maximum max_last<-function(x) return(c(x[-length(x)],max(x))) as.vector(unlist(by(A,i,max_last))) and this is

Re: [R-es] Fwd: buscar y reemplazar tabs dentro de un archivo

2016-05-18 Thread eric
perfecto, gracias patricio por tu aporte de ideas, voy a intentar con todas las opciones hasta que alguna resulte, Saludos, Eric. On 05/18/2016 06:31 PM, Patricio Fuenmayor wrote: Hola, una vez tuve un problema similar al cargar un archivo no estructurado. Primero cargue todo el archivo

[R-es] Sustituir o join

2016-05-18 Thread Rafael Saturno via R-help-es
Hola comunidad  soy nuevo en esto, tengo el siguiente problema tengo una lista de fechas, de esas fechas tengo el mes en numero ej: x:mes  8  6 en otro data.frame tengo una lista con los 12 meses (en numero tambien), con un factor que necesito para cada mes, ej:y:mes  factor   1        0  5      

[R-es] Fwd: buscar y reemplazar tabs dentro de un archivo

2016-05-18 Thread Patricio Fuenmayor
Hola, una vez tuve un problema similar al cargar un archivo no estructurado. Primero cargue todo el archivo sin delimitadores como texto donde el registro era la fila completa. Con el uso de expresiones regulares realicé la limpieza de la data, de los delimitadores y demás. Con la data

[R-es] buscar y reemplazar tabs dentro de un archivo

2016-05-18 Thread Patricio Fuenmayor
Hola, una vez tuve un problema similar al cargar un archivo no estructurado. Primero cargue todo el archivo sin delimitadores como texto donde el registro era la fila completa. Con el uso de expresiones regulares realicé la limpieza de la data, de los delimitadores y demás. Con la data

[R] 3D plots in R.3.2.3

2016-05-18 Thread ch.elahe via R-help
Hi all, I am using R version 3.2.3 and I want to plot 3D histogram or 3D scatterplot. Does anyone know which packages can be used for this version for 3D plots? I tried plot3d but it's not working for this version. Thanks for any help. Elahe __

Re: [R] Vectorised operations

2016-05-18 Thread Bert Gunter
Sorry, I can't help, but wanted to note that "apply methods" are essentially just loops and rarely much faster or slower than explicit loops. (Those of us who use them do so for clarity and maintainability of code reasons). Cheers, Bert Bert Gunter "The trouble with having an open mind is that

Re: [R] Vectorised operations

2016-05-18 Thread William Dunlap via R-help
ave(A, i, FUN=cummax) loops but is faster than your aggregate-based solution. E.g., > i <- rep(1:1, sample(0:210, replace=TRUE, size=1)) > length(i) [1] 1056119 > a <- sample(-50:50, replace=TRUE, size=length(i)) > system.time( vAve <- ave(a, i, FUN=cummax) ) user system elapsed

Re: [R-es] buscar y reemplazar tabs dentro de un archivo

2016-05-18 Thread eric
Estimado Carlos, muchas gracias por tus dos sugerencias. Algo asi es lo que estaba buscando para no tener que salir de R. Ademas genial que fread produzca un data.table pues el codigo esta hecho usando esa libreria. Muchas gracias de nuevo, Eric. On 05/18/2016 03:47 PM, Carlos Ortega

Re: [R] projectRaster function no values

2016-05-18 Thread Adrienne Wootten
Ben, Thanks so for much for the heads up on R-sig-geo (totally forgot about that one myself). Thank you also for the clue, it gave me a poke in the right direction to figure it out. I'll share with the group just in case someone else runs across this. It was actually something off with the

Re: [R-es] buscar y reemplazar tabs dentro de un archivo

2016-05-18 Thread Carlos Ortega
Hola, Además de la solución de modificar el fichero antes de procesarlo en R usando comando Unix/Linux del sistema, puedes probar a hacerlo todo en "R" con otras funciones de lectura de otros paquetes. Mira este ejemplo: En un fichero "Myfile.txt" tengo las siguientes líneas con algunas

[R] Vectorised operations

2016-05-18 Thread John Logsdon
Folks I have some very long vectors - typically 1 million long - which are indexed by another vector, same length, with values from 1 to a few thousand, sp each sub part of the vector may be a few hundred values long. I want to calculate the cumulative maximum of each sub part the main vector by

Re: [R] projectRaster function no values

2016-05-18 Thread Ben Tupper
Hi Adrienne, You'll always get great help for these kinds of questions if you subscribe and post to the R-SIG-Geo mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-geo I highly recommend that you join! I have encountered this before, and usually it is because I have mistakenly

Re: [R] ggplot2 not displaying graph in RH7 RStudio Server 3.2.3

2016-05-18 Thread Jeff Newmiller
Context is everything. Please follow the Posting Guide and provide a minimal reproducible example. Also, if your scripts are literally the same on the two platforms, you should provide the output of the sessionInfo() function for each. -- Sent from my phone. Please excuse my brevity. On

Re: [R-es] Cargar un paquete propio

2016-05-18 Thread Carlos J. Gil Bellosta
Hola, ¿qué tal? Casi seguro, es un problema de "encoding". ¿Estás desarrollando en Windows (latin1) y subiendo al servidor en Linux (utf8)? Mira lo que se dice en http://www.hep.by/gnu/r-patched/r-exts/R-exts_4.html acerca de la codificación de caracteres en paquetes. Un saludo, Carlos J. Gil

[R-es] Cargar un paquete propio

2016-05-18 Thread david santolaria
Hola, Al intentar instalar un paquete de R creado por mí, me da el siguiente problema. Utilizando rstudio en local me funciona, pero al intentar instalarlo en rstudio-server es cuando me da este error. He probado cosillas que he leído en internet, pero no han funcionado. ¿Alguna idea? *

[R] ggplot2 not displaying graph in RH7 RStudio Server 3.2.3

2016-05-18 Thread phiroc
Hello, I have written an R script which displays a bar chart using the ggplot2 library (please refer to code excerpt at the bottom of this e-mail). Although the bar chart is displayed OK in the Windows version of RStudio (v. 3.2.4), nothing appears on Linux RH 7 in Rstudio Server 3.2.3. I

Re: [R] Placement of words in a word cloud as per its occurance.

2016-05-18 Thread shaila shailaja
Hi Jim, Thank you for the reply. Is there a way out to use it with wordcloud package and built a comparative and commonality cloud. My usage: comparison.cloud(term.matrix,max.words=300) commonality.cloud(term.matrix,random.order=FALSE, rot.per=0) I am alreadydoing a lot of

Re: [R] gam.check() NA results (k-index, p-value) of a gam logistic regression model

2016-05-18 Thread Simon Wood
Dear Fotis, The test is a randomization test, based on comparing differences of residuals, ordered with respect to the covariate of the smooth, to differences of residuals in randomized order. Random effect terms are excluded because there is not basis size to choose. Currently smooths with

Re: [R] Placement of words in a word cloud as per its occurance.

2016-05-18 Thread peter dalgaard
A few points of order; you seem to be making a couple of rookie mistakes here. (Don't take it personally, lots of people do). 1) Posting in HTML comes across garbled (and it can get much worse than what you see below), so please configure you mail program to avoid doing that. 2) You seem to