Re: [R-es] uso de switch o alternativa

2020-03-05 Thread Juan Carlos Lopez Mesa
x <- seq(0, 350, 10) cut(x =x, breaks = c(min(x), 100, 200, 300, max(x)), labels = c("<100", "100-200", "200-300", ">300"), include.lowest = TRUE) cut(x =x, breaks = c(min(x), 100, 200, 300, max(x)), include.lowest = TRUE) El jue., 5 mar. 2020 a las 14:42, Enrique RAMOS via R-help-es

Re: [R] Shape / Colour Configuration

2020-03-05 Thread Amber Kobes
My question didn't transfer through. I have a PCA plot and there are four groups all with Shape 4; however, the default colours are hard to distinguish. I am wanting to change the colour or shape of select groupings to make it easier. My code is below. > ggplot(soilall2, aes(PC1, PC2, col =

Re: [R] how to archive old shiny applications

2020-03-05 Thread Yuan Chun Ding
Thank you for pointing me there. Ding -Original Message- From: peter dalgaard [mailto:pda...@gmail.com] Sent: Thursday, March 05, 2020 2:21 PM To: Yuan Chun Ding Cc: r-help@r-project.org Subject: Re: [R] how to archive old shiny applications That'll be between you and the people who

Re: [R] how to archive old shiny applications

2020-03-05 Thread peter dalgaard
That'll be between you and the people who run shinyapps.io. It's not a question for r-help, more likely https://community.rstudio.com/tags/shinyappsio -pd > On 5 Mar 2020, at 23:04 , Yuan Chun Ding wrote: > > Hi R users, > > We like to use shiny program to share data view between

Re: [R-es] Nombrar primer columna data.frame

2020-03-05 Thread Andrés Hirigoyen
Muchas gracias Carlos. Siempre al firme Saludos El jue., 5 de mar. de 2020 a la(s) 19:01, Carlos Ortega ( c...@qualityexcellence.es) escribió: > Hola, > Esa columna realmente son los rownames() de tu data.frame... > Y como tal la puedes incorporar de esta forma: > > tu_df$tratamientos <-

[R] how to archive old shiny applications

2020-03-05 Thread Yuan Chun Ding
Hi R users, We like to use shiny program to share data view between collaborators in different universities. When running shiny, I got the following errors, so I just found that I am allowed to upload up to five applications. I want to remove the first four old applications (not view those

Re: [R-es] Nombrar primer columna data.frame

2020-03-05 Thread Carlos Ortega
Hola, Esa columna realmente son los rownames() de tu data.frame... Y como tal la puedes incorporar de esta forma: tu_df$tratamientos <- rownames(tu_df) Saludos, Carlos Ortega www.qualityexcellence.es El jue., 5 mar. 2020 a las 22:46, Andrés Hirigoyen (< andreshirigo...@gmail.com>) escribió:

[R-es] Nombrar primer columna data.frame

2020-03-05 Thread Andrés Hirigoyen
Buenas trades, mi consulta es la siguiente: Al generar un data frame la primer columna siempre aparece sin etiqueta. Al guardar un objeto groups de la función aov en esa columna quedan los tratamientos. ¿Como es posible ponerle una etiqueta y trabajarla como una variable mas? Anexo un ejemplo.

Re: [R-es] Colocar objeto Dates dentro de un vector.

2020-03-05 Thread Jaume Tormo
Hola a todos, Álvaro, has dado en el clavo, eso es lo que pasaba. Me imagino que no hay manera de meter una lista dentro de un vector. Al final he usado tu sugerencia. Y me queda así: # preliminares install.packages( lubridate ); library( lubridate ) v <- c(0, 0, 0) original <- c(2019,

Re: [R] caption needed for boxplot

2020-03-05 Thread Neha gupta
Hi Jim, thanks for your feedback It works fine now. Best regards On Thu, Mar 5, 2020 at 10:07 PM Jim Lemon wrote: > Hi Neha, > Have a look at the "names" argument to boxplot. Something like this: > > boxplot(a,aa,b,bb,c,cc,e,dd, col="Green", > names=c("ab","cd","ef","gh","lm","pq","xy","yz")

Re: [R] caption needed for boxplot

2020-03-05 Thread Jim Lemon
Hi Neha, Have a look at the "names" argument to boxplot. Something like this: boxplot(a,aa,b,bb,c,cc,e,dd, col="Green", names=c("ab","cd","ef","gh","lm","pq","xy","yz") ) Jim On Fri, Mar 6, 2020 at 7:07 AM Neha gupta wrote: > > Hi > I have a boxplot using the following code and I get the

Re: [R] Shape / Colour Configuration

2020-03-05 Thread Sarah Goslee
Without an actual question, it's hard to know what you want. But take a look at hullplot in the dbscan package. Sarah On Thu, Mar 5, 2020 at 3:54 PM Amber Kobes wrote: > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >

[R] Shape / Colour Configuration

2020-03-05 Thread Amber Kobes
PCA Groups.pdf Description: PCA Groups.pdf __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R-es] uso de switch o alternativa

2020-03-05 Thread neo
Como siempre ando apurado haciendo las tareas, siempre lo hago con ifelse aunque seguro hay alguna forma más eficiente, pero no he tenido tiempo de investigar. Algo así quizá: library(data.table) tus.datos <- as.data.table(tus.datos) tus.datos[ , newcol:=ifelse( oldcol < 100, 1, ifelse(

[R] caption needed for boxplot

2020-03-05 Thread Neha gupta
Hi I have a boxplot using the following code and I get the boxplots, but at the x axis, instead of 1,2,3, how can I get my own captions like , random, grid, genetic, pso etc. a=ran_CV$results$MAE aa=grid_CV$results$MAE b=ran_boot$results$MAE bb=grid_boot$results$MAE c=ran_locv$results$MAE

[R-es] uso de switch o alternativa

2020-03-05 Thread Enrique RAMOS via R-help-es
Estimados colegas:Tengo un problema que debe de tener una solución simple pero ya me entrampe.tengo un conjunto de valores para ciertos elementos, y se debe asignar un valor ente 1 y 4, según un rango, he estado intentándolo hacer con switch pero no me ha funcionadola idea es la siguiente tengo

Re: [R] R CMD check report error not finding function

2020-03-05 Thread Bert Gunter
... but this is the wrong list for such questions. Post on r-package-devel if you need further help. 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 Thu, Mar

Re: [R] Statistical Analysis of an Exchange Rate

2020-03-05 Thread Mark Leeds
or possibly even more appropriate is quant.stackexchange.com. On Thu, Mar 5, 2020 at 4:38 AM Eric Berger wrote: > Alternatively you might try posting to > r-sig-fina...@r-project.org > > > > On Wed, Mar 4, 2020 at 9:38 PM Bert Gunter wrote: > > > Your question is way off topic here -- this

Re: [R] R CMD check report error not finding function

2020-03-05 Thread Michael Dewey
Dear Ruben I do not think your export pattern matches .foo so that may be the problem. Michael On 05/03/2020 09:10, Ruben wrote: Dear R-help listers, I am creating a package for a friend using his scripts and I run into a problem when doing the check. Inside a macro created with

Re: [R] about ARMA(p,q) SCAN method: SAS vs. R

2020-03-05 Thread PIKAL Petr
Hi maybe you will got another answer from Steve. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. and please do not use HTML formating, it could make your message scrambled. Cheers Petr >

Re: [R] rgamma function produces NaN values

2020-03-05 Thread PIKAL Petr
Hi what is gibbs_lasso? I did not find any function of this name. Usually reproducible example greatly enhance your chances to get reasonable answer. If any n, a0, SIGMAgamma, b0 is NA rgamma gives you NA. Cheers Petr > -Original Message- > From: R-help On Behalf Of Sanna Soomro >

Re: [R] Statistical Analysis of an Exchange Rate

2020-03-05 Thread Eric Berger
Alternatively you might try posting to r-sig-fina...@r-project.org On Wed, Mar 4, 2020 at 9:38 PM Bert Gunter wrote: > Your question is way off topic here -- this list is for R programming > questions, not statistical consulting. You might wish to try > stats.stackexchange.com for the latter.

[R] R CMD check report error not finding function

2020-03-05 Thread Ruben
Dear R-help listers, I am creating a package for a friend using his scripts and I run into a problem when doing the check. Inside a macro created with gtools::defmacro(par1, expr= ... there is a call to stats::optim and the function for the optimization is called .foo(), which is listed as one

[R] rgamma function produces NaN values

2020-03-05 Thread Sanna Soomro
Hi, In my code, I want to sample from the posterior distribution to get estimates for each parameter via the Bayesian approach. My model has spatial coefficient and lasso penalty. When I run this line gibbs_lasso(y = Y, x= X, W=W.rook, tau = 0.5, M=2) It works, however, when I changed M from 2

[R] about ARMA(p,q) SCAN method: SAS vs. R

2020-03-05 Thread Huang Ivy
Hello Steve, I�m an undergraduate from SWUFE. I�ve read your webpage about performing SCAN method for identification of ARMA(p,q) orders with R code today. But I can�t open your URLs inserted to download the R code. So have you solved your problems now? And may I have a look at your R code