Re: [R-es] R-foro: Re: Bases de datos R

2015-04-08 Thread Jorge I Velez
Estimada Veronica, El comando R ls() deberia darte todos los objetos que tienes en el espacio de trabajo. Si quieres borrar un objeto en particular, por ejemplo el llamado datos, solo debes escribir R rm(datos) donde rm() es la funcion remove. Para mas ayuda consulta ?rm Ahora, si quieres

Re: [R] survreg FUNCTION

2015-04-08 Thread peter dalgaard
On 08 Apr 2015, at 10:14 , CHIRIBOGA Xavier xavier.chirib...@unine.ch 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

[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 list

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 sl-resea...@outlook.com wrote: Hi, I am trying to use the parallel

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

[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] 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] 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

[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] 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)

Re: [R-es] Temas para word markdown

2015-04-08 Thread daniel
Fernando, este enlace quizás te sirva https://vimeo.com/110804387 Hace ya muchos meses hice algo de esa manera, creando el template en Word, espero siga siendo válido. Daniel Merino El 8 de abril de 2015, 8:44, Fernando Macedo ferm...@gmail.com escribió: Buenas, estaba siguiendo el hilo de

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.

[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 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

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) ~

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 mepst...@illinois.edu wrote: Greetings. I am new to R, but have quite a

[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] 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 object

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 mepst...@illinois.edu 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.

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 at 5:07

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

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] 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.com