Re: [R] remove a "corrupted file" after using download.file() with R on Windows 7

2016-10-02 Thread Fabien Tarrade
(path_file,overwrite=TRUE,showWarning=TRUE) } return(1) } ) Thanks a lot Cheers Fabien -- Dr Fabien Tarrade Quantitative Analyst/Developer - Data Scientist Senior data analyst specialised in the modelling, processing and statistical treatment of data. PhD in Physics, 10 years of experience as

Re: [R] remove a "corrupted file" after using download.file() with R on Windows 7

2016-10-02 Thread Fabien Tarrade
heers Fabien -- Dr Fabien Tarrade Quantitative Analyst/Developer - Data Scientist Senior data analyst specialised in the modelling, processing and statistical treatment of data. PhD in Physics, 10 years of experience as researcher at the forefront of international scientific research. Fascinat

[R] remove a "corrupted file" after using download.file() with R on Windows 7

2016-09-28 Thread Fabien Tarrade
7;"')) file.remove(path_file,overwrite=TRUE,showWarning=TRUE) } return(1) } ) Thanks a lot Cheers Fabien -- Dr Fabien Tarrade Quantitative Analyst/Developer - Data Scientist Senior data analyst specialised in the modelling, processing and statistical treatment of dat

Re: [R] how to remove all messages when loading a library ?

2016-09-25 Thread Fabien Tarrade
Cheers, Bert 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 Sun, Sep 25, 2016 at 12:22 PM, Fabien Tarrade wrote: Hi there, I woul

[R] how to remove all messages when loading a library ?

2016-09-25 Thread Fabien Tarrade
e Die folgenden Objekte sind maskiert von ‘package:stats’: filter, lag Die folgenden Objekte sind maskiert von ‘package:base’: intersect, setdiff, setequal, union [1] "step 2" What is the way to get no messages at all when loading library ? ( or using other R function in gener

Re: [R] what is the faster way to search for a pattern in a few million entries data frame ?

2016-04-29 Thread Fabien Tarrade
.time(res2 <- pvec(seq_along(grams), function(i) grepl("^91", grams[i]), mc.cores=8)) user system elapsed 24.996 1.709 3.974 > identical(res0, res2) [[1]] TRUE I think anything else would require pre-processing of some kind, and then some more detail about what your

Re: [R] what is the faster way to search for a pattern in a few million entries data frame ?

2016-04-10 Thread Fabien Tarrade
1,paste,collapse="")) match.ind<-grep("DF",df$strings) match.ind [1] 2 11 91 133 169 444 547 605 734 943 Jim -- Dr Fabien Tarrade Quantitative Analyst/Developer - Data Scientist Senior data analyst specialised in the modelling, processing and statistical treatment of da

Re: [R] what is the faster way to search for a pattern in a few million entries data frame ?

2016-04-10 Thread Fabien Tarrade
equency in my DF of the strings starting with a sequence of few words. I guess these days it is standard to use DF with millions of entries so I was wondering how people are doing that in the faster way. Thanks Cheers Fabien -- Dr Fabien Tarrade Quantitative Analyst/Developer - Data Scienti

[R] what is the faster way to search for a pattern in a few million entries data frame ?

2016-04-10 Thread Fabien Tarrade
tion that can give me some guidance ? Thanks a lot Cheers Fabien -- Dr Fabien Tarrade Quantitative Analyst/Developer - Data Scientist Senior data analyst specialised in the modelling, processing and statistical treatment of data. PhD in Physics, 10 years of experience as researcher at the forefront of

[R] fast way to search for a pattern in a few million entries data frame

2016-04-09 Thread Fabien Tarrade
tion that can give me some guidance ? Thanks a lot Cheers Fabien -- Dr Fabien Tarrade Quantitative Analyst/Developer - Data Scientist Senior data analyst specialised in the modelling, processing and statistical treatment of data. PhD in Physics, 10 years of experience as researcher at the forefront of

Re: [R] R 3.1.2 : arima.sim(model=list(ma=0.5), n=250, innov=rnorm(250, mean=0, sd=0.1)) versus arima.sim(model=list(ma=0.5), n=250, mean=0, sd=0.1) => only the first element is not identical !

2015-07-13 Thread Fabien Tarrade
t(head(test4)) do give the same result than test 1 Thanks Cheers Fabien -- Dr Fabien Tarrade Quantitative Analyst - Data Scientist - Researcher Senior data analyst specialised in the modelling, processing and statistical treatment of data. PhD in Physics, 10 years of experience as researcher at

Re: [R] R 3.1.2 : arima.sim(model=list(ma=0.5), n=250, innov=rnorm(250, mean=0, sd=0.1)) versus arima.sim(model=list(ma=0.5), n=250, mean=0, sd=0.1) => only the first element is not identical !

2015-07-13 Thread Fabien Tarrade
(ma=0.5), n=250, mean=0, sd=0.1) print(head(test2)) set.seed(123); test3 <- arima.sim(model=list(ma=0.5), innov = rnorm(250,mean=0, sd=0.1), n = 250, mean=0, sd=0.1) print(head(test3)) On Sat, Jul 11, 2015 at 3:46 AM, Fabien Tarrade mailto:fabien.tarr...@gmail.com>> wrote: Dear all

[R] R 3.1.2 : arima.sim(model=list(ma=0.5), n=250, innov=rnorm(250, mean=0, sd=0.1)) versus arima.sim(model=list(ma=0.5), n=250, mean=0, sd=0.1) => only the first element is not identical !

2015-07-11 Thread Fabien Tarrade
) Hope this help Thanks Cheers Fabien -- Dr Fabien Tarrade Quantitative Analyst - Data Scientist - Researcher Senior data analyst specialised in the modelling, processing and statistical treatment of data. PhD in Physics, 10 years of experience as researcher at the forefront of international scient