[R] Organize regression output

2016-12-09 Thread francesca Pancotto
Dear Contributors I would like to ask some help concerning the automatization process of an analysis, that sounds hard to my knowledge. I have a list of regression models. I call them models=c(ra,rb,rc,rd,re,rf,rg,rh) I can access the output of each of them using for example, for the first ra$

Re: [R] sample train and test data using dplyr

2016-12-09 Thread Jim Lemon
Sample without replacement and then split that sample into train and test components. Jim On Fri, Dec 9, 2016 at 4:55 PM, Partha Sinha wrote: > How to get two sets of non overlapping data? > Regards > Parth __ R-help@r-project.org mailing list -- To U

Re: [R] issue overlaying a contour plot on map

2016-12-09 Thread Jim Lemon
Hi Jatin, It looks as though the third plot has the contour plot beneath the map, which is opaque.If you just want to show the three "hotspots" on the map, perhaps you could adjust the colors so that they are displayed on a transparent field instead of blue and then overlay that on the map. Jim

Re: [R] glmnet error: no-comfortable arguments

2016-12-09 Thread David Winsemius
> On Dec 9, 2016, at 2:45 PM, Hu Xinghai wrote: > > I come across the following error training Logistic Regression model using > cv.glmnet: > >> Error in drop(y %*% rep(1, nc)) : error in evaluating the argument 'x' in >> selecting a method for function 'drop': Error in y %*% rep(1, nc) : >> no

Re: [R] package ‘Rccp’ is not available (for R version 3.3.2)

2016-12-09 Thread Daniel Nordlund
On 12/9/2016 3:20 PM, Julia Edeleva wrote: Dear R-Community, I am trying to install the "eyetrackingR"-package to analyse my eye-tracking data. When installing the package prompts me to install the Rccp. However, when trying to do so, I am getting the error message package ‘Rccp’ is not availa

Re: [R] package ‘Rccp’ is not available (for R version 3.3.2)

2016-12-09 Thread Jeff Newmiller
A) it is Rcpp, not Rccp B) try another CRAN mirror if the automatic dependency handling did not work -- Sent from my phone. Please excuse my brevity. On December 9, 2016 3:20:33 PM PST, Julia Edeleva wrote: >Dear R-Community, > >I am trying to install the "eyetrackingR"-package to analyse my

[R] package ‘Rccp’ is not available (for R version 3.3.2)

2016-12-09 Thread Julia Edeleva
Dear R-Community, I am trying to install the "eyetrackingR"-package to analyse my eye-tracking data. When installing the package prompts me to install the Rccp. However, when trying to do so, I am getting the error message package ‘Rccp’ is not available (for R version 3.3.2) Which version of R

Re: [R] [FORGED] help with gradient boxplot

2016-12-09 Thread Fix Ace via R-help
Hi, Paul, Thank you very much! It works this time with "strict=FALSE" option. Another relevant question: how did you figure out  that boxes in boxplot are called "bwplot.box.polygon". If I am trying to make a gradient filling for barplot of other plots, how would I define grobs? Thanks!! Ace

[R] glmnet error: no-comfortable arguments

2016-12-09 Thread Hu Xinghai
I come across the following error training Logistic Regression model using cv.glmnet: > Error in drop(y %*% rep(1, nc)) : error in evaluating the argument 'x' in > selecting a method for function 'drop': Error in y %*% rep(1, nc) : > non-conformable arguments > error in evaluating the argument 'x'

Re: [R] vegan NMDS labels

2016-12-09 Thread David L Carlson
You did not provide a reproducible example, but you should be able to get what you want as follows: library(vegan) data(dune) data(dune.env) lbls <-as.integer(dune.env$Management) grps <- levels(dune.env$Management) ngrps <- length(grps) example_dune <- metaMDS(dune, distance="bray", k=2) ordip

Re: [R] "Safe" use of iterator (package iterators)

2016-12-09 Thread Doran, Harold
That is a helpful, and important, caveat. So, perhaps I should amend my original question to ask something like is it safe *when* length(r1) == length(r2) -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Friday, December 09, 2016 1:27 PM To: Doran, Harold

Re: [R] "Safe" use of iterator (package iterators)

2016-12-09 Thread David Winsemius
> On Dec 9, 2016, at 9:15 AM, Doran, Harold wrote: > > I believe I now see the light vis-à-vis iterators when combined with > foreach() calls in R. I have now been able to reduce computational workload > to minutes instead of hours. I want to verify that the way I am using them is > "safe". B

[R] vegan NMDS labels

2016-12-09 Thread Sibylle Stöckli
Dear R users Does anybody know how it may be possible to plot the labels of a ordihull function separately (in R vegan)? We have studied the bee community in 5 different habitat types. As you see from the code, we use different point types (pch) and line types (lty). This is only possible if we

[R] "Safe" use of iterator (package iterators)

2016-12-09 Thread Doran, Harold
I believe I now see the light vis-à-vis iterators when combined with foreach() calls in R. I have now been able to reduce computational workload to minutes instead of hours. I want to verify that the way I am using them is "safe". By safe I mean does the iterator traverse elements in the same wa

Re: [R] creating possible cominations of a vector's elements

2016-12-09 Thread Dimitri Liakhovitski
Thanks a lot, David and Bill! On Thu, Dec 8, 2016 at 8:16 PM, David L Carlson wrote: > Not my day. Another correction: > > makestrings <- function(vec) { > len <- length(vec) > idx <- expand.grid(1:len, 1:len) > idx <- idx[idx$Var2 <= idx$Var1, c("Var2", "Var1")] > mapply(fun