[R] Expected min height of view

2021-01-07 Thread Gregory Coats via R-help
I upgraded from R 4.0.2 to R 4.0.3 for Apple Mac at Duke University. Now, the only output I get from R 4.0.3 is an error message. Greg Coats 2021-01-07 22:58:42.997 R[8311:37566] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.00. This error

[R] Secondary y axis in ggplot2: did not respond when change its y-axis value

2021-01-07 Thread Marna Wagley
Hi R users, I was trying to plot a graph with a secondary axis, and used the following code for the data but the secondary line and secondary y -axis value did not match. I would like to show both lines in one graph. Any suggestions? library(ggplot2) library(reshape2) daT<-structure(list(x =

Re: [R-es] Gráfico al estilo heatmap, pero no heatmap XD

2021-01-07 Thread Eric
Muchas gracias Carlos, un abrazo, Eric. On 07-01-21 18:48, Carlos Ortega wrote: > Y tienes más alternativas aquí: > > https://www.r-graph-gallery.com/2d-density-plot-with-ggplot2.html > > > El jue, 7 ene 2021 a las 22:47,

Re: [R-es] Gráfico al estilo heatmap, pero no heatmap XD

2021-01-07 Thread Carlos Ortega
Y tienes más alternativas aquí: https://www.r-graph-gallery.com/2d-density-plot-with-ggplot2.html El jue, 7 ene 2021 a las 22:47, Carlos Ortega () escribió: > Hola, > > Mira esto: > > https://github.com/LKremer/ggpointdensity > > Saludos, > Carlos Ortega > www.qualityexcellence.es > > El jue, 7

Re: [R-es] Gráfico al estilo heatmap, pero no heatmap XD

2021-01-07 Thread Carlos Ortega
Hola, Mira esto: https://github.com/LKremer/ggpointdensity Saludos, Carlos Ortega www.qualityexcellence.es El jue, 7 ene 2021 a las 22:29, Eric () escribió: > Que tal comunidad, tengo un problema al que le he dado vueltas para > resolverlo con R y creo que he llegado a una solución, pero

Re: [R-es] Fórmula con variables al azar

2021-01-07 Thread Carlos Ortega
Hola, Las diferencias con respecto a un random forest (no sé si usaste randomForest o ranger) pueden venir del resto de parámetros (los valores por defecto de rpart están en rpart.control() ) son diferentes a los de random forest (al menos para los de ranger), por ejemplo número de elementos a

[R-es] Gráfico al estilo heatmap, pero no heatmap XD

2021-01-07 Thread Eric
Que tal comunidad, tengo un problema al que le he dado vueltas para resolverlo con R y creo que he llegado a una solución, pero pienso que ya le debe haber pasado a alguien y que ya debe estar implementado en R. SIn embargo, me ha ido mal en mi búsqueda porque, a pesar de la simpleza del

Re: [R] seq.Date when date is the last date of the month

2021-01-07 Thread Jeremie Juste
Hello Dirk, Many thanks for the feedback. I did came across your SO answer but didn't know the RcppBDT package, thanks for pointing that out. Best regards, Jeremie On Thursday, 7 Jan 2021 at 13:59, Dirk Eddelbuettel wrote: > Jeremie, > > As months have irregular number of dates, one needs to

Re: [R-es] Fórmula con variables al azar

2021-01-07 Thread Manuel Mendoza
Gracias José Luis, y también a Carlos y a Juan. Respecto a lo que dices, José Luis, de usar un random forest, es que es eso lo que estoy programando, un RF. Tenía ya hecho el programa del bootstrap con árboles, y a partir de él he programado un RF. He solucionado el problema que tenía con lo que

Re: [R] seq.Date when date is the last date of the month

2021-01-07 Thread Jeremie Juste
Hello Jim, Many thanks for the feedback > Using "month" first advances the month without changing the day: if > this results in an invalid day of the month, it is counted forward > into the next month: see the examples. Indeed I missed the documentation of seq.Date that refers to seq.POSIXt.

Re: [R-es] Proyecto Lucene

2021-01-07 Thread Diego Martín
Estimados compañeros: Tened en cuenta que no está, desde 2018, disponible el paquete *solr* en CRAN. En su lugar está *solrium*, véase: *https://cran.r-project.org/web/packages/solrium/index.html * .

Re: [R] non-standard reshape from long to wide

2021-01-07 Thread Yuan Chun Ding
Hi Rui, Thank you so much!! You code works well and I am looking into the pivot_wider function. Yuan Ding -Original Message- From: Rui Barradas [mailto:ruipbarra...@sapo.pt] Sent: Thursday, January 7, 2021 12:19 PM To: Yuan Chun Ding ; r-help@r-project.org Subject: Re: [R]

Re: [R] non-standard reshape from long to wide

2021-01-07 Thread Rui Barradas
Hello, Here is a dplyr solution. The main trick is to create a column of 1's, then pipe to pivot_wider. library(dplyr) library(tidyr) df.long %>% mutate(values = 1) %>% pivot_wider( id_cols = sample, names_from = marker, values_from = values, values_fill = NA ) Note:

Re: [R] AIC for robust GAM ?

2021-01-07 Thread varin sacha via R-help
Hi Bert, Many thanks for your response. Best, Le mercredi 6 janvier 2021 à 21:47:14 UTC+1, Bert Gunter a écrit : Per the posting guide linked below: "If the question relates to a contributed package , e.g., one downloaded from CRAN, try contacting the package maintainer first. You

Re: [R] seq.Date when date is the last date of the month

2021-01-07 Thread Dirk Eddelbuettel
Jeremie, As months have irregular number of dates, one needs to use a function that accounts for that (date libraries and packages have that, one of the earliest for R was my RcppBDT package using Boost Date_Time), or be otherwise clever. Here is a one-liner using the latter approach:

Re: [R] seq.Date when date is the last date of the month

2021-01-07 Thread jim holtman
yes it is the expected behaviour is you check the documentation: Using "month" first advances the month without changing the day: if this results in an invalid day of the month, it is counted forward into the next month: see the examples. Jim Holtman Data Munger Guru What is the problem that

[R] seq.Date when date is the last date of the month

2021-01-07 Thread Jeremie Juste
Hello, I recently bumped into a behavior that surprised me. When performing the following command, I would expect the second argument to be "2012-09-30" but got "2012-10-01" instead > seq(as.Date("2012-08-31"),by="1 month",length=2) [1] "2012-08-31" "2012-10-01" When the same command is

Re: [R] non-standard reshape from long to wide

2021-01-07 Thread Bert Gunter
Show us your attempt on your example data. Also note that warnings are *not* errors, though they typically do indicate problems. -- Bert On Thu, Jan 7, 2021 at 11:09 AM Yuan Chun Ding wrote: > Hi Bert, > > > > No, this Is not home work related. Original data have 87352 rows. I used > the

Re: [R] non-standard reshape from long to wide

2021-01-07 Thread Yuan Chun Ding
Hi Bert, No, this Is not home work related. Original data have 87352 rows. I used the standard reshape function and got warning message. So I reformatted the wide format to meet my research purpose. mut2 <-mut[,c("Tumor_Sample_Barcode","mut.id", "Hugo_Symbol")] mut2

Re: [R] non-standard reshape from long to wide

2021-01-07 Thread Bert Gunter
Is this homework? There is a no-homework policy on this list. If not, note that you are usually asked to show what you tried and the error messages you received. 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] Proyecto Lucene

2021-01-07 Thread Diego Martín
Buenas: Muchas gracias por la cuestión. Eso me ha hecho repensar el asunto en el que estoy. Sí, había visto Solr, pero pronto lo descarté para trabajar con él por dos razones: primero declara tener API para Python y Ruby, pero no hace la más mínima referencia a R. Segundo, es

[R] non-standard reshape from long to wide

2021-01-07 Thread Yuan Chun Ding
Dear R user, I want to reshape a long data frame to wide format, I made the following example files. Can you help me? Thank you, Yuan Chun Ding sample <-c("xr" , "xr" , "fh" , "fh" , "fh" , "uy" , "uy" , "uy" , "uy"); marker <-c("x" , "y" , "g" , "x" , "k" , "y" , "x" , "u" , "j"); df.long

Re: [R] New mask.ok option for libraries

2021-01-07 Thread Duncan Murdoch
On 07/01/2021 10:02 a.m., Magnus Torfason wrote: I had sent the following to r-devel a while ago, but perhaps r-help is more appropriate. No, this is definitely an R-devel topic. You didn't get any replies there, but that doesn't mean you should post it again in the wrong place. Duncan

[R] New mask.ok option for libraries

2021-01-07 Thread Magnus Torfason
I had sent the following to r-devel a while ago, but perhaps r-help is more appropriate. I guess my question is what to do with this, would people generally file an issue, or is there a way to hear if this is something that makes sense to add – whether more info would be helpful and so on? =

Re: [ESS] info file not building in emacs

2021-01-07 Thread Miguel Rodriguez via ESS-help
Apparently the issue has been reported already in https://github.com/melpa/melpa/issues/7347# . I’ll try the manual download and take a look at the Makeconf. Many thanks! Miguel Rodriguez rodmiganto...@gmail.com +4915163393479 > On 5 Jan 2021,

Re: [R] text analysis errors

2021-01-07 Thread Rasmus Liland
On 2021-01-07 11:34 +1100, Jim Lemon wrote: > On Thu, Jan 7, 2021 at 10:40 AM Gordon Ballingrud > wrote: > > > > Hello all, > > > > I have asked this question on many forums without response. And although > > I've made progress myself, I am stuck as to how to respond to a particular > > error

Re: [R-es] Fórmula con variables al azar

2021-01-07 Thread José Luis Cañadas
Hola Manuel. ¿No has pensado en hacer un randomforest, poniendo qeu use todos los datos en cada muestra bootstrap y un porcentaje de las variables? El jue, 7 ene 2021 a las 1:42, Carlos Ortega () escribió: > Hola Manuel, > > Esta es una forma, uso el conjunto de datos "car90" que viene incluido

Re: [R] Error Running Bootstrap Function within Wrapper Function

2021-01-07 Thread Kevin Egan
Hi Stephen, Thanks for the advice, from my understanding, the function foo1 should provide a vector of coefficients which are the same length as the columns in the data frame provided. This is based on the results from glmnet. With foo2, this should be the same case, I've provided an if statement