Re: [R] mysterious error message not sure if its from within package?

2015-11-05 Thread Duncan Murdoch
On 05/11/2015 12:14 AM, Sharon Louise Every wrote: > Hi everyone, > > Sorry if this is not appropriate through this email list but I wanted to > check if this was something wrong with R in my computer rather than within a > package I’m using. I am using SIAR - SIBER and have for a few months

[R] How to change name of pdf output of function windRose in openair package

2015-11-05 Thread Stefano Sofia
Dear r-list users, I am using windRose within the openair package. Automatically the wind rose is saved in a pdf file called Rplots.pdf . I need to apply this function to different data frames, and each time I need to change automatically the name of the pdf output. I am not able to do it, I

Re: [R] [FORGED] Re: merging-binning data

2015-11-05 Thread Alaios via R-help
Thanks.That is what I want. It is more that I do not know how to read factors that these two functions return Browse[1]> y $`13.6954016405008` [1] (13.2,115] Levels: (13.2,115] (115,217] (217,318] (318,420] (420,522] $`88.5092280867206` [1] (13.2,115] Levels: (13.2,115] (115,217] (217,318]

Re: [R-es] Duda respecto a la dimensión de la división de dos columnas de una tabla

2015-11-05 Thread Albert Montolio
Muchas gracias, así funciona. La última pregunta del día. Quiero representar un análisis secuencial. Tengo dos columnas, columna 1 con meses, columna 2 con los datos. Utilizo la función indexplot(Serie01D96, type='p', id.method='y', id.n=2, labels=rownames(test1), main=" Diagrama

Re: [R-es] Duda respecto a la dimensión de la división de dos columnas de una tabla

2015-11-05 Thread Jesús Para Fernández
indexplot(columna1,columna2, id.method='y', id.n=2, labels=rownames(test1), main=" Diagrama seq��ncial Des96 - Des08" ) Date: Thu, 5 Nov 2015 15:23:06 +0100 Subject: Re: [R-es] Duda respecto a la dimensi�n de la divisi�n de dos columnas de una tabla From: albert.monto...@gmail.com

[R-es] seleccionar columnas en archivo .csv

2015-11-05 Thread Albert Montolio
Hola chic@s, tengo un archivo .csv con 145 filas y 17 columnas. He importado en R el archivo con la funcion de leer .csv. //especificar ruta del directori. setwd("/home/albert/Documentos/R/PAC1") wb <- read.csv("Dades_PAC1Des96_Des08.csv",header=TRUE) wbs1<-(wb[,1:3]) quiero meter en una

Re: [R-es] seleccionar columnas en archivo .csv

2015-11-05 Thread Víctor Granda García
Hola. También puedes hacerlo con dplyr: library(dplyr) wbs1 %>% select(nombre_columna_1, nombre_columna_3) Y si la salida tiene que ser una matriz en vez de un data_frame o data_table: wbs1 %>% select(nombre_columna_1, nombre_columna_3) %>% as.matrix(.) Un saludo. El jue., 5 nov.

Re: [R] How to change name of pdf output of function windRose in openair package

2015-11-05 Thread Jim Lemon
Hi Stefano, Just start the PDF device, do the plot, then close the PDF device: library(openair) ... data(mydata) pdf("windRose.pdf") windRose(mydata) dev.off() This is from the first example for the windRose function. It will produce a file named "windRose.pdf" in the working directory of R.

Re: [R-es] seleccionar columnas en archivo .csv

2015-11-05 Thread Jesús Para Fernández
Prueba con wbs1<-(wb[,c(1,3)]) Sino tb puedes hacer esto: wbs1<-wb wbs1[,2]<-NULL > Date: Thu, 5 Nov 2015 12:24:02 +0100 > From: albert.monto...@gmail.com > To: R-help-es@r-project.org > Subject: [R-es] seleccionar columnas en archivo .csv > > Hola chic@s, > > tengo un archivo .csv con

[R] Caret Internal Data Representation

2015-11-05 Thread Lorenzo Isella
Dear All, I have a data set which contains both categorical and numerical variables which I analyze using Cubist+the caret framework. Now, from the generated rules, it is clear that cubist does something to the categorical variables and probably uses some dummy coding for them. However, I cannot

Re: [R] JAGS 4.x, rjags 4.x problems | Linux

2015-11-05 Thread Evan Cooch
On 11/5/2015 9:45 AM, Rainer Hurling wrote: Am 04.11.2015 um 21:36 schrieb Evan Cooch: On 11/4/2015 2:08 PM, Evan Cooch wrote: Greetings -- This has also been posted on the jags forum, but since I suspect the problem is more 'R-related' than jags, will aos post here. Decided to 'upgrade'

[R] Attempting to plot two different time series together

2015-11-05 Thread Ezra Boyd
Hello, I am trying to create a plot (I guess two plots) using two different time series datasets, but I'm not sure of the best approach. The data is from a tidal surge due to a hurricane and I would like to show the relationship between stage and windspeed/direction. One dataset is the tidal

Re: [R] JAGS 4.x, rjags 4.x problems | Linux -- solved

2015-11-05 Thread Evan Cooch
Well, sort of. I got sufficiently frustrated that I completely uninstalled R, jags, and everything related. Did a re-install using only versions of R nd JAGS found in the epel repo. No muss, no muss -- all works. Out of curiosity, uninstalled again, and tried my usual sequence of manually

[R] post a message - R help. Surivival analysis and goodness of fit

2015-11-05 Thread Luke Gaylor
Hello there, I have registered for both through nabble and R-help-request with this email. I want to post the following question: I want to implement a Hosmer Lemeshow Goodness of Fit test to my survival analysis. In R we can use the hoslem.test() function. The x values are our observations,

Re: [R] JAGS 4.x, rjags 4.x problems | Linux -- solved

2015-11-05 Thread Rainer Hurling
Am 05.11.2015 um 15:44 schrieb Evan Cooch: > Well, sort of. I got sufficiently frustrated that I completely > uninstalled R, jags, and everything related. Did a re-install using only > versions of R nd JAGS found in the epel repo. No muss, no muss -- all > works. > > Out of curiosity, uninstalled

Re: [R] Creating "Envelope" around a plot

2015-11-05 Thread Greg Snow
Look at the polylineoffset function in the polyclip package. It looks like it does what you are asking for. On Mon, Nov 2, 2015 at 5:33 AM, WRAY NICHOLAS wrote: > Hi I am plotting various strands of information, and I want to create an > "envelope" around each line,

Re: [R] A bunch of packages keeps wanting to get updated

2015-11-05 Thread Duncan Murdoch
On 05/11/2015 1:00 PM, Dimitri Liakhovitski wrote: I am using a windows laptop, R 3.2.2 I am using R-gui. When I go to Packages -> Update packages and then select a Cran mirror (in the US) - it tells me to update the following packages: GLMMGibbs RDCOMClient Rstem survnnet yags I click OK

[R] A bunch of packages keeps wanting to get updated

2015-11-05 Thread Dimitri Liakhovitski
I am using a windows laptop, R 3.2.2 I am using R-gui. When I go to Packages -> Update packages and then select a Cran mirror (in the US) - it tells me to update the following packages: GLMMGibbs RDCOMClient Rstem survnnet yags I click OK and then I get successful update messages, like:

Re: [R] A bunch of packages keeps wanting to get updated

2015-11-05 Thread Dimitri Liakhovitski
Just in case: > sessionInfo() R version 3.2.2 (2015-08-14) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4]

Re: [R] Caret Internal Data Representation

2015-11-05 Thread Bert Gunter
I am not familiar with caret/Cubist, but assuming they follow the usual R procedures that encode categorical factors for conditional fitting, you need to do some homework on your own by reading up on the use of contrasts in regression. See ?factor and ?contrasts (and other linked Help as

Re: [R] A bunch of packages keeps wanting to get updated

2015-11-05 Thread Dimitri Liakhovitski
Thank you, Duncan. Indeed those packages were sitting in a temp directory. I had to install them manually from a 'zip file. On Thu, Nov 5, 2015 at 2:40 PM, Duncan Murdoch wrote: > On 05/11/2015 1:00 PM, Dimitri Liakhovitski wrote: >> >> I am using a windows laptop, R

[R] creating a jpeg from xyplot with openbugs

2015-11-05 Thread Chris
 I'm using xyplot to plot MCMC results generated via R2openbugs and coda and trying to create jpeg outputs. the jpegs are blank I can plot the MCMC object with xyplot at the command line however, when I use a function to send the  plot to a jpeg (or to a bmp, or png or pdf) the file is created

Re: [R] creating a jpeg from xyplot with openbugs

2015-11-05 Thread Bert Gunter
Please post i plain text, as request by the posting guide. As you can see, HTML can come out a mess. Answer: FAQ 7.22 -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Nov 5, 2015 at 2:30 PM,

[R] Help with dplyr

2015-11-05 Thread Axel Urbiz
Hello, Is there a way to avoid the warning below in dplyr. I’m performing an operation within groups, and the warning says that the factors created from each group do not have the same levels, and so it coerces the factor to character. I’m using this inside a package I’m developing. I’d

Re: [R] Help with dplyr

2015-11-05 Thread peter dalgaard
> On 06 Nov 2015, at 00:59 , Axel Urbiz wrote: > > Hello, > > Is there a way to avoid the warning below in dplyr. I’m performing an > operation within groups, and the warning says that the factors created from > each group do not have the same levels, and so it coerces

Re: [R] [FORGED] Re: merging-binning data

2015-11-05 Thread Rolf Turner
On 05/11/15 22:49, Alaios wrote: Thanks.That is what I want. It is more that I do not know how to read factors that these two functions return Browse[1]> y $`13.6954016405008` [1] (13.2,115] Levels: (13.2,115] (115,217] (217,318] (318,420] (420,522] $`88.5092280867206` [1] (13.2,115] Levels:

Re: [R] post a message - R help. Surivival analysis and goodness of fit

2015-11-05 Thread David Winsemius
> On Nov 5, 2015, at 6:34 AM, Luke Gaylor wrote: > > Hello there, > > I have registered for both through nabble and R-help-request with this email. > > I want to post the following question: > > I want to implement a Hosmer Lemeshow Goodness of Fit test to my

Re: [R] cannot install RWinEdt

2015-11-05 Thread Uwe Ligges
On 06.11.2015 02:06, Nordlund, Dan (DSHS/RDA) wrote: You might want to upgrade to R-3.2.2 as there appears to be a RWinEdt binary available for it. There is also a binary for the R-3.1.x series, hence install.packages("RWinEdt") should do the trick. Anyway, if you want to install from

Re: [R] cannot install RWinEdt

2015-11-05 Thread Uwe Ligges
There is also a binary for the R-3.1.x series, hence install.packages("RWinEdt") should do the trick. Anyway, if you want to install from sources, please instal the Rtools and also install with the --no-test-load flag (RWinEdt complains if called non-interactively). Best, Uwe Ligges On

[R] cannot install RWinEdt

2015-11-05 Thread Cynthia Yeung - NOAA Federal
I am an intermediate R user with little understanding of the working of R packages. My problem is with the package RWinEdt. I was using using WinEdt 6 with R 3.1.3 and R-Sweave-6 in Windows 7 rather smoothly. Then I got a brand new computer,still running windows 7. I installed R 3.1.3, no new

Re: [R] problem in R

2015-11-05 Thread Jim Lemon
Hi thanoon, When I run your code, I get two error messages. Those error messages tell you all you need to know to solve the first part of your problem (i.e. that none of the values in W1 and W2 are changed from NA). The second part of your problem is that even if you attend to those error

Re: [R] Help with dplyr

2015-11-05 Thread Jeff Newmiller
Yes, that was my intention, but it appears I may not have read his code carefully enough. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#.

Re: [R] Help with dplyr

2015-11-05 Thread Jeff Newmiller
Solution is to always use the stringsAsFactors=TRUE option in your data.frame() function calls. --- Jeff NewmillerThe . . Go Live... DCN:Basics:

Re: [R] Attempting to plot two different time series together

2015-11-05 Thread Jeff Newmiller
Seems like you would benefit from reading about long and wide data... perhaps [1]. If I am understanding what you want, ggplot facetting should be able to do what you want. You first have to put the data in long form (e.g. variable, timestamp, value) before you give it to ggplot. If you

Re: [R] Help with dplyr

2015-11-05 Thread William Dunlap
Did you mean to add stringsAsFactors=FALSE to the following call to data.frame? bin <- data.frame( pred = pred, bin = cut(pred, breaks = Breaks, include.lowest = TRUE)) Since cut() produces a factor you would also have to convert it to character to make stringAsFactors=FALSE to have

Re: [R] problem in R

2015-11-05 Thread Rolf Turner
On 06/11/15 14:31, Jim Lemon wrote: The fundamental problem that has emerged in this discussion is that you seem to be applying the method of post-modernist deconstruction to programming in R. I see no future in this enterprise. *Gotta* be a fortune!!! cheers, Rolf -- Technical Editor

Re: [R] Help with dplyr

2015-11-05 Thread David Winsemius
> On Nov 5, 2015, at 3:59 PM, Axel Urbiz wrote: > > Hello, > > Is there a way to avoid the warning below in dplyr. There is an option that lets you turn off warnings. There also a wrapper function called, not surprisingly, … `suppressWarnings`. This is all descibed

Re: [R] creating a jpeg from xyplot with openbugs

2015-11-05 Thread Bert Gunter
Oh, and incidentally, you appear to be mixing base graphics -- the jpeg() call -- with lattice graphics, xyplot(). See ?trellis.device for lattice details. -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll

Re: [R] cannot install RWinEdt

2015-11-05 Thread Nordlund, Dan (DSHS/RDA)
You might want to upgrade to R-3.2.2 as there appears to be a RWinEdt binary available for it. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services -Original Message- From:

Re: [R] Help with dplyr

2015-11-05 Thread David Winsemius
> On Nov 5, 2015, at 4:58 PM, Jeff Newmiller wrote: > > Solution is to always use the stringsAsFactors=TRUE option in your > data.frame() function calls. Since that is the default, I’m wondering if you meant to say FALSE? — David. >

Re: [R] Help with dplyr

2015-11-05 Thread Axel Urbiz
Thank you all! > On Nov 5, 2015, at 9:07 PM, William Dunlap wrote: > > Did you mean to add stringsAsFactors=FALSE to the following call to > data.frame? > bin <- data.frame( > pred = pred, > bin = cut(pred, breaks = Breaks, include.lowest = TRUE)) > Since cut()

Re: [R] JAGS 4.x, rjags 4.x problems | Linux

2015-11-05 Thread Rainer Hurling
Am 04.11.2015 um 21:36 schrieb Evan Cooch: On 11/4/2015 2:08 PM, Evan Cooch wrote: Greetings -- This has also been posted on the jags forum, but since I suspect the problem is more 'R-related' than jags, will aos post here. Decided to 'upgrade' from jags 3.x.x to 4.x.x today, on my

Re: [R-es] Duda respecto a la dimensión de la división de dos columnas de una tabla

2015-11-05 Thread Jesús Para Fernández
Prueba a hacer esto: Serie16<-wb[3]/wb[12] > Date: Thu, 5 Nov 2015 14:43:22 +0100 > From: albert.monto...@gmail.com > To: R-help-es@r-project.org > Subject: [R-es] Duda respecto a la dimensi�n de la divisi�n de dos columnas > de una tabla > > Muchas gracias a tod@s por las respuetas! > >

Re: [R] How to change name of pdf output of function windRose in openair package

2015-11-05 Thread PIKAL Petr
Hi if you need to do naming automagically you can use ls for creating object consisting from names of objects and use it for naming inside a cycle. obj <- ls() for (i in 1:n) { pdf(paste(obj[i], "pdf", sep=".")) ... do the plotting dev.off() } Cheers Petr > -Original Message- > From:

[R-es] Duda respecto a la dimensión de la división de dos columnas de una tabla

2015-11-05 Thread Albert Montolio
Muchas gracias a tod@s por las respuetas! tengo en una variable wb una tabla con 145 filas y 17 columnas. dim(wb) 145 17 Creo una variable Serie16, la cual resulta de dividir la columna 3 y la 12. Serie16 <- c(wb[3]/wb[12]) Serie16 Aquí viene el problema. La dimensión de la nueva columna,

RE: [R-es] Duda respecto a la dimensi�n de la divisi�n de dos columnas de una tabla

2015-11-05 Thread Isidro Hidalgo
Tienes que cambiar esta fila: Serie16 <- c(wb[3]/wb[12]) Por esta otra: Serie16 <- c(wb[,3]/wb[,12]) Saludos Isidro Hidalgo Arellano Observatorio del Mercado de Trabajo Consejería de Economía, Empresas y Empleo http://www.jccm.es > -Mensaje original- > De: R-help-es