Re: [R] Help with replace()

2018-07-13 Thread Uwe Ligges
On 12.07.2018 18:09, Bill Poling wrote: Yes, that's got it! (20 years from now I'll have it all figured out UGH!), lol! Using R for 20 years myself now I can only tell that it takes much longer. Best, Uwe Ligges Thank you David Min. 1st Qu. Median Mean 3rd Qu.

Re: [R] Making objects global in a package

2018-07-13 Thread Jeff Newmiller
Avoiding rda files because they don't track well with version control seems weak to me, since you should be creating the rda with an R file in the tools directory. On July 13, 2018 6:50:31 PM PDT, William Dunlap wrote: >What the OP is doing looks fine to me. > >The environment holding the data

Re: [R] Making objects global in a package

2018-07-13 Thread William Dunlap via R-help
What the OP is doing looks fine to me. The environment holding the data vectors is not necessary, but it helps organize things - you know where to look for this sort of data vector. I would avoid the *.rda file, since it is not text, hence not readily editable or trackable with most source contro

Re: [R] Making objects global in a package

2018-07-13 Thread Jeff Newmiller
a) There is a mailing list for package development questions: R-package-devel. b) This seems like a job for the sysdata.rda file... no explicit environments needed. See the Writing R Extensions manual. On July 13, 2018 5:51:06 PM PDT, Michael Hannon wrote: >Greetings. I'm putting together a s

Re: [R] Making objects global in a package

2018-07-13 Thread R. Mark Sharp via R-help
I would usually use a function for this. It may not be more R like, but it is more readable to me. If you want, to keep the columns in a file, you could have the function initialize itself on the first call. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Mea

[R] Making objects global in a package

2018-07-13 Thread Michael Hannon
Greetings. I'm putting together a small package in which I use `dplyr::read_csv()` to read CSV files from several different sources. I do this in several different files, but with various kinds of subsequent processing, depending on the file. I find it useful to specify column types, as the appa

Re: [R] optim function

2018-07-13 Thread MacQueen, Don via R-help
There's a CRAN Task View on optimization. There might be something useful there. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 7/13/18, 11:43 AM, "R-help on behalf of Federico Becerra" wrote:

Re: [R] Rmpi fails to install

2018-07-13 Thread Bert Gunter
I cannot specifically help, but you may wish to post this on the r-sig-mac list where there may be the expertise you need. 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

Re: [R] Rmpi fails to install

2018-07-13 Thread Erin Hodgess
Hi! You need to have MPI in your path. Thanks, Erin On Fri, Jul 13, 2018 at 4:29 PM Yufei Zhao wrote: > Hello! > > I try to install Rmpi with install.packages(“Rmpi”), but it fails: > > > install.packages("Rmpi") > Package which is only available in source form, and may need compilation > of C

[R] Rmpi fails to install

2018-07-13 Thread Yufei Zhao
Hello! I try to install Rmpi with install.packages(“Rmpi”), but it fails: > install.packages("Rmpi") Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘Rmpi’ Do you want to attempt to install these from sources? (Yes/no/cancel) yes installing the source p

[R] optim function

2018-07-13 Thread Federico Becerra
Good afternoon, I am a Biology researcher working on Functional Morphology and Behaviour in mammals. Nowadays, I have a series of morphological data that I would like to test against different models for which I would need to optimize them -namely, "randomly manipulating" all models parameters