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
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
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",
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
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
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
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 =
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
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`)
9 matches
Mail list logo