[R] Statistics course: Darwin, Australia

2015-04-08 Thread Highland Statistics Ltd
Apologies for cross-posting There are 8 remaining seats on the following course: Course: Data exploration, regression, GLM & GAM with introduction to R When: 3-7 August 2015 Where: Darwin, Australia Course flyer: http://www.highstat.com/Courses/Flyers/Flyer2015_08Darwin_regression_GLM_GAM.pdf

[R] sorting means for plot in descending order

2015-04-08 Thread Luis Fernando García
Dear R experts, I am newbie on the R use, now I want to sort my data by mean in a descending and not acending order (like I have done so far). If any of you could help me with this, it would be really appreciated! Thanks! Please find the script attached with the summary of the dat object pt<

[R] how to Subset based on partial matching of columns?

2015-04-08 Thread samarvir singh
So I have a list that contains certain characters as shown below `list <- c("MY","GM+" ,"TY","RS","LG")` And I have a variable named "CODE" in the data frame as follows `code <- c("MY GM+", ,"LGTY", "RS","TY")` 'x <- c(1:5) `df <- data.frame(x,code)` df x code 1 MY GM+ 2 3 LGT

[R] fUtilities error

2015-04-08 Thread 정진선
Hi, there. I'd like to run OCAP program to analyse iTRAQ data, but i failed to run due to error of fUtilities. It only could run under the R 2.0.0 version. However i couldn't install R program under the R.2.0.0 version. While i'm trying to figure out the problem, I found that fUtilities were re

Re: [R] extracting slot "coords" from a Polygons class object

2015-04-08 Thread Sarah Goslee
You didn't parse the output you pasted in correctly: pt1.cpoly@polygons[[1]]@Polygons[[1]]@coords or coordinates(pt1.cpoly@polygons[[1]]@Polygons[[1]]) > class(pt1.cpoly) [1] "SpatialPolygons" attr(,"package") [1] "sp" So see ?"SpatialPolygons-class" for details. Sarah On Wed, Apr 8, 2015 a

Re: [R] script works in Rstudio but not with Rscript

2015-04-08 Thread Henrik Bengtsson
On Wed, Apr 8, 2015 at 11:20 AM, Milt Epstein wrote: > OK, this suggestion brings up some interesting results. No solution, > however. But it's interesting ... and maybe some helpful leads. > > The basic/short answer to your question is no, it doesn't work with "R > -f script". > > The longer an

Re: [R] extracting slot "coords" from a Polygons class object

2015-04-08 Thread MacQueen, Don
It would be better to ask this question on r-sig-geo. More people there are more familiar with the structure of Spatial{*} classes. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 4/8/15, 2:07 PM, "Monica Pisica" wrote:

[R] extracting slot "coords" from a Polygons class object

2015-04-08 Thread Monica Pisica
Hi, I am struggling to extract the polygon vertices from a list of an object class "Polygons", specifically the slot "coords". I have a point, and i "draw" a buffer around with gBuffer, i am "extracting" the polygon form the SpatialPolygons class and i end up with a list of 1 one objec

Re: [R] script works in Rstudio but not with Rscript

2015-04-08 Thread William Dunlap
> > args <- commandArgs(TRUE) > > num <- args[1] and then you get a complaint about something not being numeric. commandArgs() returns a character vector so try num <- as.numeric(args[1]) and you may as well preface it with stopifnot(length(args)>0) Bill Dunlap TIBCO Software wdunlap tibco

Re: [R] script works in Rstudio but not with Rscript

2015-04-08 Thread Milt Epstein
OK, this suggestion brings up some interesting results. No solution, however. But it's interesting ... and maybe some helpful leads. The basic/short answer to your question is no, it doesn't work with "R -f script". The longer answer: Note that the script is currently set up to be called with a

Re: [R] your suggestions in MRMs

2015-04-08 Thread Sarah Goslee
Kristi, You're completely missing the point, I think. Instead of providing X,Y coordinates in the sample dataset graze within the ecodist package, I provided one location, X if you'd like, called sitelocation. If you look at the example in ?MRM, data(graze) LOAR10.mrm <- MRM(dist(LOAR10) ~ dist

Re: [R] your suggestions in MRMs

2015-04-08 Thread Kristi Glover
Hi Sarah, Thanks for the reply. I again looked at the example, but I did not find the way to calculate the location variable. All example in the document ("ecodist") has the Euclidean distance. did not find the example to conceal the absolute location. There are some example: page 21 and 22

[R] data-mining with multiple filters applied to multiple columns

2015-04-08 Thread Morway, Eric
Using this representative dataset of a much larger dataset: dat <- read.table(textConnection("ISEG IRCH div gw 1 1 265 229 1 2 260 298 1 3 234 196 54 1 432 485 54 39 467 485 54 40 468 468 54 41 460 381 54 42 489 502 1 1 265 317 1 2 276 225 1

Re: [R] your suggestions in MRMs

2015-04-08 Thread Sarah Goslee
Kristi, The row names are utterly arbitrary. Each row is a separate site, and sitelocation is a location variable (both intended to conceal the absolute location, which is confidential since it's on private property). It is NOT the Euclidean distance, nor is a row representing a pair of sites. If

[R] your suggestions in MRMs

2015-04-08 Thread Kristi Glover
Hi R Users, I was trying to perfom multiple regression on resemblance matrices (MRMs). This technique in avaiable in "ecodist" package and looked at the example data to know how I need to organize my data set. I think the data is distance matrix but I was wondering the rows name. For example,

[R] FW: r-sig-genetics is alive!

2015-04-08 Thread Jombart, Thibaut
Dear all, a small "heads up" for R-sig-genetics, a mailing list devoted to population genetics in R. See below, and sorry about the double-posting. All the best Thibaut -- From: Jombart, Thibaut Sent: 08 April 2015 17:21 To: r-sig-genet...@r-project.o

Re: [R] script works in Rstudio but not with Rscript

2015-04-08 Thread Henrik Bengtsson
Does it work with R -f script? If so, then it's because Rscript does not attaching methods package by default, but R does. Try loading methods at the top of your script. My $.02 Henrik On Apr 8, 2015 07:41, "Milt Epstein" wrote: > Greetings. I am new to R, but have quite a bit of experience >

Re: [R] C compilation error (unknown type R_xlen_t) when installing Rmpi package

2015-04-08 Thread Prof Brian Ripley
On 08/04/2015 16:00, Sebastian L wrote: Hi, I am trying to use the parallel computing cluster of our university. To that end, I would like to install the Rmpi package on the cluster. The R version currently installed on the cluster is This was a matter for the R-devel list as it involves com

Re: [R] C compilation error (unknown type R_xlen_t) when installing Rmpi package

2015-04-08 Thread Henrik Bengtsson
Support for long vectors (and hence R_xlen_t) was introduced in R 3.0.0. Your version is far outdated. If you wait a teeny but longer (after April 16) to update, you'll get R 3.2.0. Henrik On Apr 8, 2015 08:00, "Sebastian L" wrote: > Hi, > > I am trying to use the parallel computing cluster of

[R] script works in Rstudio but not with Rscript

2015-04-08 Thread Milt Epstein
Greetings. I am new to R, but have quite a bit of experience programming with other languages (e.g., Perl, Java, Python, shell scripting). I'm now working on a project where I need to use R. A colleague wrote a number of small scripts that work fine in Rstudio, but a couple of them don't work wh

[R] C compilation error (unknown type R_xlen_t) when installing Rmpi package

2015-04-08 Thread Sebastian L
Hi, I am trying to use the parallel computing cluster of our university. To that end, I would like to install the Rmpi package on the cluster. The R version currently installed on the cluster is R version 2.15.2 (2012-10-26) -- "Trick or Treat" Platform: x86_64-redhat-linux-gnu (64-bit) I am

[R] Coxme penalized log-likelihood mismatch

2015-04-08 Thread Alexandre Lafontaine
Hi,  I need to extract the penalized log-likehood term from coxme objects but I find the values stored whitin the object different than the penalized term given in the summary output of coxme function. Both the Null and the Integrated values are identical but the penalized is always off.  Any

[R] How to calculate vif of each term of model in R?

2015-04-08 Thread Methekar, Pushpa (GE Transportation, Non-GE)
I am beginner in R doing modelling in R, I loaded excel sheet in R, i have chosen x elements and y elements then fitted model for linear and second order regression. Now I have both models. I am bit confused how to calculate vif for each term in model like e.g model1<-lm(y1~x1+x2+.x9) wh

Re: [R] survreg FUNCTION

2015-04-08 Thread peter dalgaard
On 08 Apr 2015, at 10:14 , CHIRIBOGA Xavier wrote: > Dear members, > > > > I am trying a survival analysis , I got: > > > > Error: could not find function "survreg" > > > > I already load > > the packages: survival > > the function: splines > Load or install? I suspect you actually

[R] survreg FUNCTION

2015-04-08 Thread CHIRIBOGA Xavier
Dear members, I am trying a survival analysis , I got: Error: could not find function "survreg" I already load the packages: survival the function: splines What can I do? Thanks for you help, Xavier __ R-help@r-project.org mailing lis