[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

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 __

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

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

Re: [R-es] procesar MODELOS DIGITALES DE TERRENO (DEM)

2016-12-09 Thread Carlos Ortega
Hola, Claro, si comentas este detalle de las librerías que te habían recomendado, es más directo... Hay muchos ejemplos por ahí...: http://mazamascience.com/WorkingWithData/?p=1277 https://rpubs.com/RobinLovelace/7178 Saludos, Carlos Ortega www.qualityexcellence.es El 10 de diciembre de 2016,

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

[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

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

Re: [R-es] procesar MODELOS DIGITALES DE TERRENO (DEM)

2016-12-09 Thread Manuel Spínola
Hola Javier, Depende de lo que quieras hacer, pero puede que RSAGA te sea de utilidad. https://cran.r-project.org/web/packages/RSAGA/vignettes/RSAGA-landslides.pdf Manuel El 9 de diciembre de 2016, 18:00, javier valdes escribió: > Hola. > Mira la verdad es que no era

Re: [R-es] procesar MODELOS DIGITALES DE TERRENO (DEM)

2016-12-09 Thread javier valdes
Hola. Mira la verdad es que no era eso precisamente. Tengo entendido que existe un paquete "raster" y " gdal" , al parecer, esos son la clave, sin embargo, no he encontrado muchos ejemplos o experiencia de uso. A ver si aparece algún colega que trabajó con esos paquetes. Saludos a todos.

Re: [R-es] rvest

2016-12-09 Thread javier.ruben.marcuzzi
Estimado Carlos Ortega Tal como me lo sugiere mire el xpath, y encontré dos problemas, el primero es el más complicado, y es referido al uso de JavaScript, posiblemente habría que plantear utilizar node.js para no tener problemas, pero no lo experimente. El segundo problema lo expongo con un

Re: [R-es] procesar MODELOS DIGITALES DE TERRENO (DEM)

2016-12-09 Thread Carlos Ortega
Hola, ¿Es esto? https://rpubs.com/mharris/GoogleAPI Saludos, Carlos Ortega www.qualityexcellence.es El 8 de diciembre de 2016, 23:52, javier valdes escribió: > ESTIMADOS: > Estoy en busqueda de de paquetes que esten orientados al procesamiento de > modelos digitales de

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)

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

[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

[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

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",