[R] Edit plot adehabitatHS

2015-04-01 Thread Luis Fernando García
Dear R experts, I am making a selectivity analysis using the package. Nevertheless, I am having some troubles, and I would like to know if somebody know how to help me: 1) When changing the x-axis labels. The programm uses the name habitat instead of the names specified in the file. 2) Is it

[R] about model.matrix

2015-04-01 Thread Fix Ace
I tried to run the sample code from R: dd - data.frame(a = gl(3,4), b = gl(4,1,12))  a b 1 1 1 2 1 2 3 1 3 4 1 4 5 2 1 6 2 2 7 2 3 8 2 4 9 3 1 10 3 2 11 3 3 12 3 4 options(contrasts) model.matrix(~ a + b, dd)(Intercept) a2 a3 b2 b3 b4 11 0 0 0 0 0 21 0 0 1

Re: [R] read.table with a memory connection

2015-04-01 Thread Prof Brian Ripley
On 01/04/2015 09:52, Thomas wrote: Hi, Is there a way to create memory connections in R which are valid connections to read.table (and associated function)? By saying memory connection I refer to something like a connection created from a simple character object (of length 1) - instead of

[R] read.table with a memory connection

2015-04-01 Thread Thomas
Hi, Is there a way to create memory connections in R which are valid connections to read.table (and associated function)? By saying memory connection I refer to something like a connection created from a simple character object (of length 1) - instead of having the content in a physical file

[R] From replicate to accesing sublists

2015-04-01 Thread Alaios via R-help
Dear all,I have a R structure that was created with replicate.The data sets looks to be a matrix with each cell being a list. str(error_suburban_0[,1],max.level=1) List of 4 $ vaR :List of 20 ..- attr(*, class)= chr variogram $ Shadowing:List of 2 ..- attr(*, class)= chr geodata $ FIT

Re: [R] Can not load Rcmdr

2015-04-01 Thread John Fox
Dear Angela, There's very little to go on here. The messages to which you refer concern primarily Mac OS X, where the most common problem is failure to install XQuartz or to reinstall it after an OS upgrade. Help for this and other Mac OS X problems is available in the Rcmdr installation notes,

Re: [R] Calculating different PCAs in R

2015-04-01 Thread Adams, Jean
PCA 1, 2, and 3 refer to the scores not the loadings. Check out the help for princomp. ?princomp pc.cr - princomp(USArrests, cor = TRUE) pc.cr$scores[1:3, ] Jean On Tue, Mar 31, 2015 at 4:26 PM, im db imdb.subscr...@gmail.com wrote: Dear All, I want to use princomp() function in R in order

[R] change language at console

2015-04-01 Thread Alaios via R-help
Hi all,I am a linux R user and my default R environemnt (after writing R in linux console) returns the error messages in German (I am not the system adminitstrator and I can not change system settings). I know that the English package is also installed so I guess I need to set some

Re: [R] read.table with a memory connection

2015-04-01 Thread Thomas
On 01/04/2015 11:06, Prof Brian Ripley wrote: On 01/04/2015 09:52, Thomas wrote: Hi, I believe you are looking for 'text connections': see the 'text' argument to read.table() and ?textConnection. Thanks, that's it ! __ R-help@r-project.org

Re: [R] change language at console

2015-04-01 Thread Prof Brian Ripley
On 01/04/2015 15:14, Alaios via R-help wrote: Hi all,I am a linux R user and my default R environemnt (after writing R in linux console) returns the error messages in German (I am not the system adminitstrator and I can not change system settings). I know that the English package is also

Re: [R] From replicate to accesing sublists

2015-04-01 Thread David Winsemius
On Apr 1, 2015, at 3:34 AM, Alaios via R-help wrote: Dear all,I have a R structure that was created with replicate.The data sets looks to be a matrix with each cell being a list. str(error_suburban_0[,1],max.level=1) List of 4 $ vaR :List of 20 ..- attr(*, class)= chr variogram $

Re: [R] Can not load Rcmdr

2015-04-01 Thread a b
BTW I've also tried this as non-root: R CMD javareconf -e and there's still a problem with rJava not being able to access the library that was supposedly compiled and installed in my home R directory. I think it may have to do with the fact we're using an older version of R. We're using Java

Re: [R] Can not load Rcmdr

2015-04-01 Thread a b
Thanks for the quick response! While I agree Rcommander is not the same thing as either ESS or RStudio, it can also be useful as a wrapper when testing out functions and scripts. I learned R on it and it's a more comfortable environment for me than ESS. (Thank you for writing it!) Strangely

Re: [R] Can not load Rcmdr

2015-04-01 Thread Ista Zahn
On Wed, Apr 1, 2015 at 10:14 AM, a b angela.ba...@ars.usda.gov wrote: Thanks for the quick response! While I agree Rcommander is not the same thing as either ESS or RStudio, it can also be useful as a wrapper when testing out functions and scripts. I learned R on it and it's a more

Re: [R] change language at console

2015-04-01 Thread Rich Shepard
On Wed, 1 Apr 2015, Prof Brian Ripley wrote: I would start by trying LANGUAGE=en , e.g. More specifically, you can use en_US or en_GB. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] about model.matrix

2015-04-01 Thread Michael Dewey
This is really a question about statistics rather than R but see below On 01/04/2015 06:28, Fix Ace wrote: I tried to run the sample code from R: dd - data.frame(a = gl(3,4), b = gl(4,1,12)) a b 1 1 1 2 1 2 3 1 3 4 1 4 5 2 1 6 2 2 7 2 3 8 2 4 9 3 1 10 3 2 11 3 3 12 3 4

Re: [R] Error in dis[sppInSample, sppInSample]:subscript out of bounds

2015-04-01 Thread MacQueen, Don
Before (I hope!) someone else answers in an unkind tone (and someone probably will), I have a few suggestions: 1) please use plain text email (an option somewhere in your email software). Using HTML email usually makes the email harder to read on r-help. 2) if at all possible, please try to

[R] Windows serial connection

2015-04-01 Thread Adam Rountrey
Using Windows 8.1 I have an Arduino connected and I am trying to read from and write to a serial connection using R. The problem involves the reading. I am able to establish the connection using the following: system(mode COM4 baud=9600 parity=n data=8, show.output.on.console=T) a =

Re: [R] From replicate to accesing sublists

2015-04-01 Thread Alaios via R-help
Thanks.The code you gave me at the end works correctly.. I was wondering if there is more efficient way to access each element withouth this classic for loop. RegardsAlex On Wednesday, April 1, 2015 5:54 PM, David Winsemius dwinsem...@comcast.net wrote: On Apr 1, 2015, at 3:34

Re: [R] Can not load Rcmdr

2015-04-01 Thread John Fox
Dear anja, You shouldn't really need XLConnect -- if it's absent, the only consequence is that you won't be able to import Excel files directly in the Rcmdr. Just say no when the Rcmdr asks to install XLConnect, and the Rcmdr GUI should start up normally (unless there's some other problem). If

[R] 2 statistics courses in Perth

2015-04-01 Thread Highland Statistics Ltd
Apologies for cross-posting We would like to announce the following 2 statistics courses in Perth, Australia. Course1: Data exploration, regression, GLM GAM with introduction to R Location: UWA, Perth, Australia Date: 20-24 July 2015 Price: 500 GBP Course website:

Re: [R] data.frame: data-driven column selections that vary by row??

2015-04-01 Thread Arunkumar Srinivasan
David, In data.table v1.9.5 (current development version, which you can get from here: https://github.com/Rdatatable/data.table/wiki/Installation), new features were added to both `melt` and `cast` for data.tables. They both can handle multiple columns simultaneously. I think this would be of

[R] Kruskal-Wallace power tests.

2015-04-01 Thread Collin Lynch
Greetings, I am working on a project where we are applying the Kruskal-Wallace test to some factor data to evaluate their correlation with existing grade data. I know that the grade data is nonnormal therefore we cannot rely on ANOVA or a similar parametric test. What I would like to find is a

[R] Error in dis[sppInSample,sppInSample]:subscript out of bounds

2015-04-01 Thread marion howard
Hello, I am new to R and am encountering an error message that I cannot find a solution for. I am attempting to calculate MPD (mean pairwise distance), without weighting for abundance, with a community species list and a phylogenetic tree in newick format with branch lengths. I have read in