Re: [R] using S4 objects in "with"?

2018-09-26 Thread Spencer Graves
On 2018-09-26 15:34, Duncan Murdoch wrote: On 26/09/2018 4:16 PM, Spencer Graves wrote:     Is there anything comparable to "with" for S4 objects? EXAMPLE:     A "Wave" object in the tuneR package has slots "left" and "right", plus others.  I'd like to be able to do something

Re: [R] using S4 objects in "with"?

2018-09-26 Thread Duncan Murdoch
On 26/09/2018 4:16 PM, Spencer Graves wrote:   Is there anything comparable to "with" for S4 objects? EXAMPLE:   A "Wave" object in the tuneR package has slots "left" and "right", plus others.  I'd like to be able to do something like the following: library(tuneR) x <- seq(0,

[R] using S4 objects in "with"?

2018-09-26 Thread Spencer Graves
  Is there anything comparable to "with" for S4 objects? EXAMPLE:   A "Wave" object in the tuneR package has slots "left" and "right", plus others.  I'd like to be able to do something like the following: library(tuneR) x <- seq(0, 2*pi, length = 6) all.equal(x, rev(x)) channel

Re: [R] Summarizing R script

2018-09-26 Thread Bert Gunter
All suggestions made by others here are useful, but I would suggest that computer scientists are probably a better -- or at least valuable additional -- resource for this sort of knowledge than R programmers. A web search on "self-documenting code" and/or "reproducible research" should yield lots

Re: [R] Summarizing R script

2018-09-26 Thread MacQueen, Don via R-help
I wonder if the lintr package might be helpful. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 9/26/18, 7:00 AM, "R-help on behalf of Spencer Brackett" wrote: R users, Is anyone aware

Re: [R] Summarizing R script

2018-09-26 Thread Duncan Murdoch
On 26/09/2018 10:24 AM, Spencer Graves wrote:   It depends on what you want, but I've found it very useful to create packages and submitting them to CRAN.  See "Creating R Packages" for how to do that.[1]  Part of this involves creating vignettes using Rmarkdown within RStudio.  Creating

Re: [R] Summarizing R script

2018-09-26 Thread Spencer Graves
  It depends on what you want, but I've found it very useful to create packages and submitting them to CRAN.  See "Creating R Packages" for how to do that.[1]  Part of this involves creating vignettes using Rmarkdown within RStudio.  Creating R packages and routinely running "R CMD

Re: [R] Summarizing R script

2018-09-26 Thread Roger Koenker
I use R CMD BATCH foo which produces a file called foo.Rout and provided the script includes sessionInfo() constitutes a quite sufficient summary for my purposes, it isn’t exactly pretty, but it is informative. > On Sep 26, 2018, at 3:00 PM, Spencer Brackett > wrote: > > R users, > > Is

[R] Summarizing R script

2018-09-26 Thread Spencer Brackett
R users, Is anyone aware of the proper procedure for summarizing a script(your complete list of functions, arguments , and error codes within your R console for say a formal report or publication? Many thanks, Best wishes, Spencer Brackett -- Forwarded message - From:

[R] Problems to obtain standardized betas in multiply-imputed data

2018-09-26 Thread CHATTON Anne via R-help
Dear all, I am having problems in obtaining standardized betas on a multiply-imputed data set. Here are the codes I used : imp = mice(data, 5, maxit=10, seed=42, print=FALSE) FitImp <- with(imp,lm(y ~ x1 + x2 + x3)) Up to here everything is fine. But when I ask for the standardized coefficients

Re: [R] Accessing files from Linux Server

2018-09-26 Thread Rui Barradas
Hello, There are functions in base R to access files, you will need an external package only for special file types (such as, for instance, .xls or JSON). At an R prompt type ?read.table ?readLines ?file ?scan and start from there. I suggest you start with the first, it's the most used of

[R] Accessing files from Linux Server

2018-09-26 Thread Jomy Jose
Hi Which R package can be best employed to access the files in Linux server Thanks in advance Jose [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] Odd R CMD build behaviour on Windows

2018-09-26 Thread Imanuel Costigan via R-help
Hi all I am finding that on Windows 10: * the archive file produced by R (i386) CMD build command saves the resulting archive file in the present working directory * ...BUT the archive produced by the R (x64) CMD build command is **not** saved in the present working directory. Instead it is