Re: [R] Use mapply or lapply to a nested list

2020-12-22 Thread Chao Liu
Jim and Ben, Thank you for your help. I will play around the commands and function you suggested. Best, Chao On Tue, Dec 22, 2020 at 4:07 AM Jim Lemon wrote: > Hi Chao, > I think what you are looking for is the "rapply" function in the base > package. Not sure that it can do exactly what you

Re: [R-es] Reemplazar texto específico al principio de un campo cadena.

2020-12-22 Thread Juan Carlos Lopez Mesa
a<-c("few34AR-1234", "AR-1234-3456","AR-1fd234-4532","AR-12dsfs34-","AR-12few34-") library(tidyverse) str_remove(string = a, pattern = "^AR-") El mar, 22 dic 2020 a las 17:09, juan manuel dias () escribió: > Hola, > > Quiero remplazar por espacio vació al texto que está al

[R-es] Reemplazar texto específico al principio de un campo cadena.

2020-12-22 Thread juan manuel dias
Hola, Quiero remplazar por espacio vació al texto que está al principio de una cadena. a<-c("few34AR-1234", "AR-1234-3456","AR-1fd234-4532","AR-12dsfs34-","AR-12few34-") Necesito que reemplace AR por " " solamente cuándo AR está al principio de la cadena, quedaría asi: "few34AR-1234",

Re: [R] plm

2020-12-22 Thread Bert Gunter
Well, you may get lucky and get a reply here, but per the posting guide linked below, which you are **supposed to** read and follow **before** posting: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R

Re: [R] error in installing limma

2020-12-22 Thread Martin Morgan
limma is a Bioconductor package so you should use https://support.bioconductor.org I'd guess that you've trimmed your screen shot just after the informative information. Just copy and paste as plain text the entire output of your installation attempt. Presumably you are using standard

[R] plm

2020-12-22 Thread KENNETH KIGUNDU
Dear all I am working on a paper where I am analysing energy-non energy substitution possibilities in a manufacturing sector. In this case, I am estimating a translog cost function jointly with factor share equations under SUR modeling. The estimation requires me to impose linear homogeneity

[R] Problem with mlr3 parameters optimization

2020-12-22 Thread Neha gupta
Hello everyone, I performed a parameters optimization in mlr3 and then pass it to the benchmark to compare the optimized and a baseline learner, but it give an error message and does not recognize the optimized (i.e. at) learner. df=readARFF("nasa93.arff") task=TaskRegr$new("df", df, target =

[ESS] Support for more R completion features in ESS

2020-12-22 Thread Deepayan Sarkar via ESS-help
Dear All, Background: Some new experimental completion facilities in R cannot be currently used in ESS. I was able to come up with small hacks to enable them, but in the case of company-mode I needed to disable caching, which is probably not a good idea. I was wondering if it would make sense to

Re: [R] Use mapply or lapply to a nested list

2020-12-22 Thread Jim Lemon
Hi Chao, I think what you are looking for is the "rapply" function in the base package. Not sure that it can do exactly what you request but worth a look. Jim On Tue, Dec 22, 2020 at 6:36 AM Chao Liu wrote: > > I want to apply a sample function to a nested list (I will call this list > `bb`)