Re: [R] Question about proxy setting of R

2016-12-05 Thread Carina Salt via R-help
As far as I can see, the 'internal' method doesn't work for https mirrors (on my system, anyway). However, the http mirrors still exist (try " http://cloud.r-project.org/; for example) so why not just use one of those? Cheers, Carina On 5 December 2016 at 12:27, jim holtman

[R] Use of 'by' function with FUN=mean

2013-11-22 Thread Carina Salt
Hi everybody I'm having some unexpected errors from the 'by' function when using it to apply the mean function (by a factor) to a dataframe of numerical variables. The following piece of toy code demonstrates: myDataF-warpbreaks myDataF$X-runif(54) # creating an additional numerical variable in

[R] Fwd: Use of 'by' function with FUN=mean

2013-11-22 Thread Carina Salt
Hi everybody Sorry guys, please ignore my previous email regarding the problem I was having using the 'by' function with FUN=mean. Just read the given error properly and realised my (silly) mistake in that you can no longer apply the mean function to a dataframe regardless of whether its wrapped

Re: [R] Adding Proxy information in 'R' application

2013-11-08 Thread Carina Salt
Hi Jose I faced the same problem at my workplace too - the solution (at least for us) was to insert the following function into the Rprofile.ste file in the etc folder in the R install folder - or, if the .First function already exists, you could just insert the line beginning Sys.setenv(….)

Re: [R] survfit number of variables != number of variable names

2012-11-19 Thread Carina Salt
Hi - I've seen a similar issue going on with survfit when using strata in the model, although I get a different error message from ge. If it helps to track down the problem (rather than confusing things further) here is some code that should reproduce the issue I've seen. I'm running R 2.15.2,

[R] Using method = aic with pspline survreg (survival library)

2011-09-20 Thread Carina Salt
Hi everybody. I'm trying to fit a weibull survival model with a spline basis for the predictor, using the survival library. I've noticed that it doesn't seem to be possible to use the aic method to choose the degrees of freedom for the spline basis in a parametric regression (although it's fine