Re: [R] security using R at work

2018-08-08 Thread rsherry8
I consider R to be secure. It is possible, but very unlikely, that there are some back door traps in R where somebody could access your data. There is no software that is 100% secure and R is not 100% secure. Bob On 8/8/2018 11:09 AM, Laurence Clark wrote: Hello all, I want to download R

Re: [R] loop over matrix: subscript out of bounds

2018-08-08 Thread Rui Barradas
Hello, There are now three solutions to the OP's problem. I have timed them and the results depend on the matrix size. The solution I thought would be better, Enrico's diag(), is in fact the slowest. As for the other two, Eric's for loop is 50% fastest than the matrix index for small matrices

Re: [R] Help with finalfit and knitr

2018-08-08 Thread Bill Poling
Wow, thank you Jeff, that’s got it! explanatory = c("ProductName", "AgeCat", "PatientGender","RevCodeCats") View(explanatory) dependent = "BinaryAccSav" # AcceptedSavings AcceptedSavings 1=Y 0=N View(dependent) df6 %>%

[R] Revolutions blog: July 2018 roundup

2018-08-08 Thread David Smith (CDA) via R-help
Since 2008, Microsoft staff and guests have written about R at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you missed them, here are some articles related to R

Re: [R] security using R at work

2018-08-08 Thread Rich Shepard
On Wed, 8 Aug 2018, Laurence Clark wrote: I want to download R and use it for work purposes. I hope to use it to analyse very sensitive data from our clients. Laurence, Good choice. My question is: If I install R on my work network computer, will the data ever leave our network? I need

Re: [R] security using R at work

2018-08-08 Thread Barry Rowlingson
On Wed, Aug 8, 2018 at 4:09 PM, Laurence Clark wrote: > Hello all, > > I want to download R and use it for work purposes. I hope to use it to > analyse very sensitive data from our clients. > > My question is: > > If I install R on my work network computer, will the data ever leave our >

Re: [R] Fwd: Help with finalfit and knitr

2018-08-08 Thread Martin Maechler
> Bert Gunter > on Wed, 8 Aug 2018 08:21:05 -0700 writes: > (From Jeff Newmiller) "My advice is to enter one line of > each example at a time and study what it does before > proceeding to the next line. Copying whole swathes of code > and marveling at the result is

[R] security using R at work

2018-08-08 Thread Laurence Clark
Hello all, I want to download R and use it for work purposes. I hope to use it to analyse very sensitive data from our clients. My question is: If I install R on my work network computer, will the data ever leave our network? I need to know if the data goes anywhere other than our network,

[R] Fwd: Help with finalfit and knitr

2018-08-08 Thread Bert Gunter
(From Jeff Newmiller) "My advice is to enter one line of each example at a time and study what it does before proceeding to the next line. Copying whole swathes of code and marveling at the result is exhilarating but ultimately leaves you handicapped in creating your own code." Fortune

Re: [R] Help with finalfit and knitr

2018-08-08 Thread Jeff Newmiller
R syntax does not allow for objects to be plopped next to each other separated by a space. There should be a newline after the t1 variable. This kind of problem plagues people copying HTML into emails on this mailing list (losing newlines), and was probably introduced into your code during a

Re: [R] Submit your own R package - @examples

2018-08-08 Thread Bert Gunter
This should be posted on the r-package-devel list rather than here: https://stat.ethz.ch/mailman/listinfo/r-package-devel 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

[R] Help with finalfit and knitr

2018-08-08 Thread Bill Poling
Hi using some of my own data I am trying to reproduce examples from this tutorial: https://cran.r-project.org/web/packages/finalfit/vignettes/finalfit_basics.html Here are my sys info: R version 3.5.1 (2018-07-02) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows Server >= 2012

Re: [R] Submit your own R package - @examples

2018-08-08 Thread S Ellison
> Most of my methods, are not exported to the namespace using the > @examples > options. Joanna, You normally need to export _all_ the objects/functions that you expect users to be able to run. And if you are giving an example of a function, it seems likely that you expect users to use it, so

Re: [R] loop over matrix: subscript out of bounds

2018-08-08 Thread S Ellison
> > Eric Bergeron Wed, 8 Aug 2018 12:53:32 +0300 writes: > > > You only need one "for loop" > > for(i in 2:nrow(myMatrix)) { > >myMatrix[i-1,i-1] = -1 > >myMatrix[i-1,i] = 1 > > } Or none, with matrix-based array indexing and explicit control of the indices to prevent overrun

Re: [R] loop over matrix: subscript out of bounds

2018-08-08 Thread Martin Maechler
> Eric Bergeron Wed, 8 Aug 2018 12:53:32 +0300 writes: > You only need one "for loop" > for(i in 2:nrow(myMatrix)) { >myMatrix[i-1,i-1] = -1 >myMatrix[i-1,i] = 1 > } > > HTH, > Eric and why are you not using Enrico Schumann's even nicer solution (from August 6) that I had

Re: [R] loop over matrix: subscript out of bounds

2018-08-08 Thread Maija Sirkjärvi
Thanks a lot ! That's it! Maija ke 8. elok. 2018 klo 12.53 Eric Berger (ericjber...@gmail.com) kirjoitti: > You only need one "for loop" > > for(i in 2:nrow(myMatrix)) { >myMatrix[i-1,i-1] = -1 >myMatrix[i-1,i] = 1 > } > > HTH, > Eric > > > On Wed, Aug 8, 2018 at 12:40 PM, Maija

Re: [R] loop over matrix: subscript out of bounds

2018-08-08 Thread Eric Berger
You only need one "for loop" for(i in 2:nrow(myMatrix)) { myMatrix[i-1,i-1] = -1 myMatrix[i-1,i] = 1 } HTH, Eric On Wed, Aug 8, 2018 at 12:40 PM, Maija Sirkjärvi wrote: > Thanks! > > If I do it like this: > > myMatrix <- matrix(0,5,5*2-3) > print(myMatrix) > for(i in 2:nrow(myMatrix))

Re: [R] loop over matrix: subscript out of bounds

2018-08-08 Thread Maija Sirkjärvi
Thanks! If I do it like this: myMatrix <- matrix(0,5,5*2-3) print(myMatrix) for(i in 2:nrow(myMatrix)) for(j in 2:ncol(myMatrix)) myMatrix[i-1,j-1] = -1 myMatrix[i-1,j] = 1 print(myMatrix) I get the following result: [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1 -1 -1 -1 -1

[R] Submit your own R package - @examples

2018-08-08 Thread Johanna Schwarz
Dear community, I am trying to submit my first R package to CRAN and stumbled upon the following problem: Most of my methods, are not exported to the namespace using the @examples options. Will I have to provide @examples for these methods in the documentation? If yes, I have the problem that