Re: [R] Subset and 0 replace?

2015-05-21 Thread Vin Cheng
This is perfect! Thanks William!!! Vince > On May 21, 2015, at 3:36 PM, William Dunlap wrote: > > I renamed your 'c' to be 'toyData' and your 'e' to be 'desiredResult'. Do you > want the following, which uses only base R code? > > > vapply(toyData, > FUN=function(V)with(V, sum(

Re: [R] Subset and 0 replace?

2015-05-21 Thread William Dunlap
I renamed your 'c' to be 'toyData' and your 'e' to be 'desiredResult'. Do you want the following, which uses only base R code? > vapply(toyData, FUN=function(V)with(V, sum(Wgt[SPCLORatingValue>16])), FUN.VALUE=0) V5 V8 V10 V44

[R] compiling R with tuned BLAS

2015-05-21 Thread Michael Gooch
I am looking at the instructions on http://cran.r-project.org/doc/manuals/r-patched/R-admin.html#ATLAS I have noticed that ATLAS produces two shared libs in addition to the *.a files: http://math-atlas.sourceforge.net/atlas_install/node22.html contents of the ATLAS lib directory: libatlas.a

[R] configure script claims that pkg-config doesn't know about cairo

2015-05-21 Thread Michael Gooch
and yet I checked manually : pkg-config --print-variables cairo exec_prefix prefix libdir includedir something weird is going on with this __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] Question regarding different R versions on an enterprise network server

2015-05-21 Thread Jeff Newmiller
Assaf: they are named differently when you run different versions. 3.1 and 3.2 are different, but 3.1.1 and 3.1.2 are both in the 3.1 directory. --- Jeff NewmillerThe . . Go Live... D

Re: [R] Question regarding different R versions on an enterprise network server

2015-05-21 Thread Assaf P. Oron
Thanks for the quick response. @Duncan: The IT person says he cannot rename the binary. Naturally that's the first suggestion I made to him. I found it odd but he's the IT person not me. OTOH if I have authoritative word from the R team that it's perfectly doable, I can get back to him :) @Jeff:

Re: [R] Question regarding different R versions on an enterprise network server

2015-05-21 Thread Jeff Newmiller
3.2 library is in a different directory than 3.1 library. You might benefit from reading the discussion about packages in the installation manual for R. --- Jeff NewmillerThe . . Go

Re: [R] Question regarding different R versions on an enterprise network server

2015-05-21 Thread Duncan Murdoch
On 21/05/2015 12:21 PM, Assaf P. Oron wrote: Hi all, I represent R users vs. IT dept. at my workplace (yes, an enviable task :) We've managed to get a workable network-based R application, for people who work remotely, or don't have a machine (i.e., they use a VDI terminal). Everything in this

Re: [R] Subset and 0 replace?

2015-05-21 Thread Vin Cheng
Thanks William/Duncan! Duncan - Yes - I am using the doBy package. running this line on the sample data below gives weights for V5,V44, & V2. Ideally I would like 0's for V8 and V10 in the output. So it would look like: e<-structure(matrix(c("V5", "0.008714910", "V8", "0", "V10", "0", "V44"

Re: [R] Vincentizing Reaction Time data in R

2015-05-21 Thread Weindel Gabriel
Bert : Thank you for your advice, it would be a little bit difficult to do it for my master thesis but, if I want to go further with a PhD thesis (and I do want), I would probably follow your advice and get in touch with a statistician. Yishin : Thank you very much for the references, I will d

[R] Question regarding different R versions on an enterprise network server

2015-05-21 Thread Assaf P. Oron
Hi all, I represent R users vs. IT dept. at my workplace (yes, an enviable task :) We've managed to get a workable network-based R application, for people who work remotely, or don't have a machine (i.e., they use a VDI terminal). Everything in this organization is staunchly Windows and Microsoft

Re: [R] Feature or bug?

2015-05-21 Thread William Dunlap
If you add a print statement to trace the evaluation of the input argument you can see how the lazy evaluation works: > update <- function (newtime) { cat("# update() is changing global ginput's time from", ginput$time, "to", newtime, "\n") ginput <<- list(time = newtime) } > server <-

Re: [R] Feature or bug?

2015-05-21 Thread peter dalgaard
On 21 May 2015, at 16:26 , Bert Gunter wrote: > Well.. > > "Because the global variable is changed before input is evaluated. R > has lazy argument evaluation, arguments are only evaluated once they > are needed. You are essentially getting bitten by R's lazy evaluation > plus "pass by value"

Re: [R] Feature or bug?

2015-05-21 Thread Bert Gunter
Well.. "Because the global variable is changed before input is evaluated. R has lazy argument evaluation, arguments are only evaluated once they are needed. You are essentially getting bitten by R's lazy evaluation plus "pass by value" syntax." While I may be either wrong or just picking on sem

Re: [R] Vincentizing Reaction Time data in R

2015-05-21 Thread John Kane
In line John Kane Kingston ON Canada > -Original Message- > From: yishinlin...@gmail.com > Sent: Thu, 21 May 2015 10:13:54 +0800 > To: gabriel.wein...@gmail.com > Subject: Re: [R] Vincentizing Reaction Time data in R > > On Wed, 20 May 2015 18:13:17 +0800, > Hi Gabriel, > > As far as I

[R] The R Foundation announces new mailing list 'R-package-devel'

2015-05-21 Thread Martin Maechler
New Mailing list: R-package-devel -- User R Packages Development At last week's monthly meeting, the R foundation has decided to create a new mailing list in order to help R package authors in their package development and testing. The idea is that some experienced R programmers (often those cur

Re: [R] Feature or bug?

2015-05-21 Thread Berwin A Turlach
G'day Sigbert, long time no see :) How is Berlin these days? On Thu, 21 May 2015 11:45:26 +0200 Sigbert Klinke wrote: It is a feature. > if I run > > update <- function (newtime) { ginput <<- list(time=newtime)} > > server <- function (input) { > print(paste("Before", input$time)) > upda

[R] Feature or bug?

2015-05-21 Thread Sigbert Klinke
Hi, if I run update <- function (newtime) { ginput <<- list(time=newtime)} server <- function (input) { print(paste("Before", input$time)) update(1) print(paste("After:", input$time)) } ginput <- list(time=0) server(ginput) then I get as result [1] "Before 0" [1] "After: 0" If I uncomm