Re: [R] security using R at work

2018-08-09 Thread john matthew via R-help
Hi Katherina. Good point you make. What makes your IT department happy with the use of R studio server? What are the safe packages? Can I trust your answer? :) John. On 9 Aug 2018 10:38, "Fritsch, Katharina (NNL) via R-help" < r-help@r-project.org> wrote: > Hiya, > I work in a very security

Re: [R] sub/grep question: extract year

2018-08-09 Thread john matthew via R-help
So there is probably a command that resets the capture variables as I call them. No doubt someone will write what it is. On 9 Aug 2018 10:36, "john matthew" wrote: > Hi Marc. > For question 1. > I know in Perl that regular expressions when captured can be saved if not > overwritten. \\1 is the

Re: [R] sub/grep question: extract year

2018-08-09 Thread john matthew via R-help
Hi Marc. For question 1. I know in Perl that regular expressions when captured can be saved if not overwritten. \\1 is the capture variable in your R examples. So the 2nd regular expression does not match but \\1 still has 1980 captured from the previous expression, hence the result. Maybe if

Re: [R] security using R at work

2018-08-09 Thread john matthew via R-help
Hello Laurence. Taking a pragmatic approach. If the data is so valuable and secret but also needs some analysis in R, here is suggested steps to minimise security risks. 1. Plan the analysis up front, what exactly what you want and the outcomes. 2. Take a laptop with Internet, install R and all

Re: [R] Breaking the samplesize package from CRAN

2018-07-27 Thread john matthew via R-help
ner. > > ?maintainer > > 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

[R] Breaking the samplesize package from CRAN

2018-07-26 Thread john matthew via R-help
Hello all, I am using the samplesize package (n.ttest function) to calculate number of samples per group power analysis (t-tests with unequal variance). I can break this n.ttest function from the samplesize package, depending on the standard deviations I input. This works very good. n.ttest(sd1