[R] Depth vs Temp graph for different transects

2014-09-01 Thread Tinus Sonnekus
Hi All, Have the following code. The graph works well plotting the 15 transect for me however the legend shows a total of 22 transects. The original data has 22 transects numbered from 1 to 22. New data set got only 15. How can I get the legend to show only the transects plotted. # Create Line

Re: [R] Issues with fa() function in psych

2014-09-01 Thread sagnik chakravarty
Hi William, Recently I noticed that if the requested rotation is not available, principal function also defaults to rotate=“none” without any WARNING. You had earlier fixed the same issue with fa in version 1.4.4. Kindly include the same for principal also. Also, as I had pointed out earlier in

Re: [R] Building R for better performance

2014-09-01 Thread lejeczek
could you tell us if the same/similar performance benefits we should expect when gnu complier suite + MKL are teamed up? and how to configure such a compilation? many thanks On 04/03/14 21:44, Anspach, Jonathan P wrote: Greetings, I'm a software engineer with Intel. Recently I've been

Re: [R] r convert current date format from y-m-d to m/d/y

2014-09-01 Thread arun
Hi, Use ?format format(d, %m/%d/%Y) #[1] 09/01/2014 A.K. On Monday, September 1, 2014 5:26 AM, Velappan Periasamy veepsi...@gmail.com wrote: d=Sys.Date() 2014-09-01 How to convert this 2014-09-01 to 09/01/2014 format? (ie y-m-d to m/d/y format) thanks veepsirtt

Re: [R] Unexpected behavior when giving a value to a new variable based on the value of another variable

2014-09-01 Thread Angel Rodriguez
Thank you John, Jim, Jeff and both Davids for your answers. After trying different combinations of values for the variable samplem, it looks like if age is greater than 65, R applies the correct code 1 whatever the value of samplem, but if age is less than 65, it just copies the values of

[R] Correlation Matrix with a Covariate

2014-09-01 Thread Patzelt, Edward
R Help - I'm trying to run a correlation matrix with a covariate of age and will at some point will also want to covary other variables concurrently. I'm using the psych package and have tried other methods such as writing a loop to extract semi-partial correlations, but it does not seem to be

[R] SpectrumBackground

2014-09-01 Thread Edmir Silva
Hello there ... Using package Peaks to run the function SNIP on a csv file with 19 spectrum. While trying to run: ### doing SNIP for every spectra require(Peaks) for (i in 1:NROW(Q)) { Q.t[i,]-Q[i,]-SpectrumBackground(as.numeric(as.vector(Q[i,])))

[R] simulation data with mixed variables

2014-09-01 Thread thanoon younis
dear all members i am trying to simulate data with mixed ordered categorical and dichotomous variables with 200 observation and 10 var. 5 ordered categorical and 5 dichotomous and i want to put a high correlation between variables so i must find correlation between dichotomous and the

Re: [R] Correlation Matrix with a Covariate

2014-09-01 Thread David L Carlson
Thanks for including your data with dput(). I'm not familiar with set correlation, but altogether you are working with 76 variables (columns) and only 46 observations. Since the error message says the system is exactly singlular, it is likely that you have too many variables for the number of

Re: [R] Depth vs Temp graph for different transects

2014-09-01 Thread David Winsemius
On Sep 1, 2014, at 3:52 AM, Tinus Sonnekus wrote: Hi All, Have the following code. The graph works well plotting the 15 transect for me however the legend shows a total of 22 transects. The original data has 22 transects numbered from 1 to 22. New data set got only 15. How can I get

Re: [R] SpectrumBackground

2014-09-01 Thread William Dunlap
I think you can get yourself going by calling Peaks:::.First.lib(dirname(find.package(Peaks)), Peaks) to get Peaks' DLL loaded. .First.lib is not getting called. You should ask the package's maintainer, maintainer(Peaks), to fix up the statup procedures. It the help files had examples or the

Re: [R] Building R for better performance

2014-09-01 Thread Ross Boylan
On Mon, Sep 01, 2014 at 12:25:01PM +0100, lejeczek wrote: could you tell us if the same/similar performance benefits we should expect when gnu complier suite + MKL are teamed up? and how to configure such a compilation? many thanks Jonathan, thanks for these very interesting results. I'm

Re: [R] Unexpected behavior when giving a value to a new variable based on the value of another variable

2014-09-01 Thread peter dalgaard
On 01 Sep 2014, at 13:08 , Angel Rodriguez angel.rodrig...@matiainstituto.net wrote: Thank you John, Jim, Jeff and both Davids for your answers. After trying different combinations of values for the variable samplem, it looks like if age is greater than 65, R applies the correct code 1

Re: [R] help.start() has a faulty link

2014-09-01 Thread peter dalgaard
On 31 Aug 2014, at 18:19 , Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On 31/08/2014 12:31, Rui Barradas wrote: Hello, With 'help.start()' an HTML browser interface to help pops up. In the section 'Miscellaneous Material' if you click on 'User Manuals' an error occurs: Error in

Re: [R] Linear regression of 0/1 response ElemStatLearn (Fig. 2.1 the elements of statistical learning)

2014-09-01 Thread David L Carlson
This is a list for R questions, not statistics or algebra, but if you set g=.5 and solve the linear model for x2 (ignore e), you will have your answer, eg: .5 = B1 + B2*X1 + B3*X2 where B1, 2, 3 are the three coefficients of the linear model, coef()[1], [2], [3].

[R] Adjusted R2 for Multivariate Regression Trees (MRT)

2014-09-01 Thread Jackson Rodrigues
Dear fellows, I am using MVPARTwrap package to built a MRT of 25 pollen samples collected from 5 different ecosystems, on my analysis I will include adjusted R2. Based on MVPARTwrap package I want to get adjusted R2 for my MRT for this, I am using the code below. #step 1 - Building MRT.

[R] Adjusted R2 for Multivariate Regression Trees (MRT) (ignore the previous message)

2014-09-01 Thread Jackson Rodrigues
Dear fellows, I am using MVPARTwrap package to built a MRT of 25 pollen samples collected from 5 different ecosystems, on my analysis I will include adjusted R2. Based on MVPARTwrap package I want to get adjusted R2 for my MRT for this, I am using the code below. #step 1 - Building MRT.

[R] Plot Lines instead of colour bands in R

2014-09-01 Thread Zilefac Elvis
Hi, I have a plotting issue which I am trying to resolve in R. Please load my attached sample data (I used dput(lapply(sim.summary,head,1)) but the data are too large) to R, install Rglimclim package and run this code which shows an example plot I would like to change. My main function, myplot

[R] URLdecode problems

2014-09-01 Thread Oliver Keyes
Hey all, So, I'm attempting to decode some (and I don't know why anyone did this) URl-encoded user agents. Running URLdecode over them generates the error: Error in rawToChar(out) : embedded nul in string Okay, so there's an embedded nul - fair enough. Presumably decoding the URL is exposing it

Re: [R] Depth vs Temp graph for different transects

2014-09-01 Thread Ben Tupper
On Sep 1, 2014, at 12:32 PM, David Winsemius dwinsem...@comcast.net wrote: On Sep 1, 2014, at 3:52 AM, Tinus Sonnekus wrote: Hi All, Have the following code. The graph works well plotting the 15 transect for me however the legend shows a total of 22 transects. The original data has 22

Re: [R] rgl zooming to an arbitrary location

2014-09-01 Thread Duncan Murdoch
On 31/08/2014, 11:12 PM, Gareth Davies wrote: I have been using rgl to view xyz point clouds containing topographic data ( with around 10^5 - 10^6 points). It's working well aside from one thing: I would like to be able to zoom into an arbitrary part of the plot. However so far I could

Re: [R] help.start() has a faulty link

2014-09-01 Thread peter dalgaard
On 01 Sep 2014, at 20:52 , peter dalgaard pda...@gmail.com wrote: I see it with a default (I think) install of 3.0.2 on OSX (haven't gotten around to upgrading the laptop). Oddly, the Vignettes entry on the Help menu works fine, but the User Manuals entry in the R Help window produces the

Re: [R] URLdecode problems

2014-09-01 Thread Jeff Newmiller
I would guess that the original URLs were encoded somehow (non-ASCII), and the person who received them didn't understand how to deal with them either and url-encoded them with the thought that they would not lose information that way. Unfortunately, they probably lost the meta information as

Re: [R] Plot Lines instead of colour bands in R

2014-09-01 Thread Sarah Goslee
We have no idea: This email list strips most attachments. I'm almost certain that you don't need all of your too large data to provide a small reproducible example, either. Please see http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example for some ideas on how to

Re: [R] rgl zooming to an arbitrary location

2014-09-01 Thread Gareth Davies
Fantastic -- the pan3d function in the example for rgl.setMouseCallbacks solves the problem. For illustration: ## library(rgl) # Get the pan3d function by running this rgl example [ignore the error caused by not having an open rgl device] example(rgl.setMouseCallbacks)

[R] depth of labels of axis

2014-09-01 Thread Jinsong Zhao
Hi there, With the following code, plot(1:5, xaxt = n) axis(1, at = 1:5, labels = c(expression(E[g]), E, expression(E[j]), E, expression(E[t]))) you may notice that the E within labels of axis(1) are not at the same depth. So the vision of axis(1) labels is something like wave. Is there a

Re: [R] Building R for better performance

2014-09-01 Thread lejeczek
could you tell us if the same/similar performance benefits we should expect when gnu complier suite + MKL are teamed up? and how to configure such a compilation? many thanks On 04/03/14 21:44, Anspach, Jonathan P wrote: Greetings, I'm a software engineer with Intel. Recently I've been

Re: [R] Building R for better performance

2014-09-01 Thread Simon Blomberg
Is MKL open source software? If not, that could be the sticking point. Simon. On 02/09/14 07:24, lejeczek wrote: could you tell us if the same/similar performance benefits we should expect when gnu complier suite + MKL are teamed up? and how to configure such a compilation? many thanks On

Re: [R] URLdecode problems

2014-09-01 Thread Hadley Wickham
Hi Oliver, I think you're being misled by the default behaviour of warnings: they all get displayed at once, before control returns to the console. If you making them immediate, you get a slightly more informative error: URLdecode(0;%20@%gIL) Warning in URLdecode(0;%20@%gIL) : out-of-range

Re: [R] depth of labels of axis

2014-09-01 Thread David Winsemius
On Sep 1, 2014, at 4:40 PM, Jinsong Zhao wrote: Hi there, With the following code, plot(1:5, xaxt = n) axis(1, at = 1:5, labels = c(expression(E[g]), E, expression(E[j]), E, expression(E[t]))) you may notice that the E within labels of axis(1) are not at the same depth. So the vision