Re: [R] RWeka Error

2016-04-12 Thread ‪Rini John‬ ‪ via R-help
Hi,When I use any function of RWeka Package in Rstudio I get an error, "Error in .jnew (name): java.lang.ClassFormatError." can anyone guide me in this?Operation system used: Linux 64 bit (CentOS) Command used: >data("crude")>tdm <- TermDocumentMatrix(crude, control=list(tokenize =

Re: [R] Adding Two-Headed Arrow in map legend

2016-04-12 Thread Jim Lemon
Hi Milu, My fault here. As I don't have the data to make the map and try out my suggestions I mixed up the x and y coordinates. Try this: par(xpd=TRUE) arrows(-19.75966,53,33.6,53,code=3) par(xpd=FALSE) Jim On Tue, Apr 12, 2016 at 10:11 PM, Miluji Sb wrote: > Hello Jim,

Re: [R] error: contextstack overflow

2016-04-12 Thread John Kane
I've never seen the error mentioned before but see Brian Ripley's post https://stat.ethz.ch/pipermail/r-help/2008-March/157341.html. It looks like you are exceeding a limit. We probably should see some sample code and data. Please have a look at

[R] error: contextstack overflow

2016-04-12 Thread Mahmoud via R-help
Dear r users I've a loop that has 20 if else statements but it gave me the ""contextstack overflow"" error at statement 14 Is there any way to overcome this problem cause i'm forced to do that loop any help or recommendations please __

Re: [R] Dissimilarity matrix and number clusters determination

2016-04-12 Thread Luisfo Chiroque via R-help
Dear Michael, Yes, AFAIK you are correctly reading the results. You can print elbow.obj$k to obtain the optimal number of clusters, and ‘visually’ you can check it plotting the variance vs #clusters plot(css.obj$k, css.obj$ev) HTH Best, Luisfo Chiroque PhD Student IMDEA Networks Institute

Re: [R-es] Red neuronal

2016-04-12 Thread Carlos Ortega
Hola Javier, Los métodos de optimización basados en programación lineal (en sus múltiples variedades) son los que se han venido utilizando con más frecuencia en las empresas justamente para encontrar puntos óptimos de fabricación (costes mínimos, maximizar ganancias, etc). Este tipo de

Re: [R] ggplot2

2016-04-12 Thread James Henson
Thanks, the stat="identity" worked. On Tue, Apr 12, 2016 at 3:34 PM, Huzefa Khalil wrote: > Hi James, > > If you want to specify the y-values, you need to use stat="identity" as > below: > > ggplot(probability, aes(x=Fertilizer, y=prob)) + > geom_bar(stat="identity",

[R-es] Red neuronal

2016-04-12 Thread Javier Marcuzzi
Estimados Estoy pensado algo en redes neuronales, pero la documentación suele confundirme. Hay algunos ejemplos donde se entrena en algo muy simple como una tabla de multiplicar, o una recta de regresión. A esto en R lo podría resolver, es muy simple con ln()…, si es algo más complejo con

Re: [R] ggplot2

2016-04-12 Thread Huzefa Khalil
Hi James, If you want to specify the y-values, you need to use stat="identity" as below: ggplot(probability, aes(x=Fertilizer, y=prob)) + geom_bar(stat="identity", aes(fill=Treatment)) best, huzefa On Tue, Apr 12, 2016 at 1:02 PM, James Henson wrote: > Dear R Community,

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread ProfJCNash
If you generate the list of pages you're comfortable editing, the posse of folk who have already come forward can select one that we think can be improved and see how we get along with it. Sarah has already noted that Github offers wiki documentation. It is likely imperfect, but we can (and

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread William Michels via R-help
On Tue, Apr 12, 2016 at 9:44 AM, David Winsemius wrote: > > There need to be more worked examples, but those could easily be mined from > problems submitted as recorded in the R-help Archives and StackOverFlow. > This sounds like a great opportunity for R-users to

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread Duncan Murdoch
On 12/04/2016 11:30 AM, ProfJCNash wrote: Thanks Duncan, for the offer to experiment. Can you suggest a couple of your pages that you think might need improvement? We might as well start with something you'd like looked at. I don't think I can. I don't intentionally write obscure

[R] ggplot2

2016-04-12 Thread James Henson
Dear R Community, Below is a problem with a simple ggplot2 graph. The code returns the error message below. Error: stat_count() must not be used with a y aesthetic. My code is below and the data is attached as a ‘text’ file. # Graph of the probabilities library(digest) library(DT)

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread Duncan Murdoch
On 12/04/2016 12:44 PM, David Winsemius wrote: > On Apr 12, 2016, at 8:31 AM, Sarah Goslee wrote: > > I am very interested in such a distributed documentation editing > project, and have some thoughts on how to make it workable for both > volunteers and core members who

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread David Winsemius
> On Apr 12, 2016, at 8:31 AM, Sarah Goslee wrote: > > I am very interested in such a distributed documentation editing > project, and have some thoughts on how to make it workable for both > volunteers and core members who would need to review. > > I'm willing to lead

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread Sarah Goslee
I am very interested in such a distributed documentation editing project, and have some thoughts on how to make it workable for both volunteers and core members who would need to review. I'm willing to lead or colead such a project, if someone stepping up would be a useful first step, and I'm

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread ProfJCNash
Thanks Duncan, for the offer to experiment. Can you suggest a couple of your pages that you think might need improvement? We might as well start with something you'd like looked at. Then I'll ask if there are interested people and see what can be done about getting a framework set up to work on

Re: [R] Correlation between package output

2016-04-12 Thread Sarah Goslee
Hi Fabio, Using the first example from ?dbFD ex1 <- dbFD(dummy$trait, dummy$abun) If you look at that help page, or at str(ex1), you'll see that the returned object is a list with named components. So, you can access the different indices just as you would access any other list. If that's

Re: [R] formula argument evaluation

2016-04-12 Thread Richard M. Heiberger
Would making it regular function %=>%, using "%" instead of quotes, work for you? On Tue, Apr 12, 2016 at 11:09 AM, Adrian Dușa wrote: > On Tue, Apr 12, 2016 at 2:08 PM, Duncan Murdoch > wrote: >> [...] >> >> It never gets to evaluating it. It

Re: [R] formula argument evaluation

2016-04-12 Thread Adrian Dușa
On Tue, Apr 12, 2016 at 2:08 PM, Duncan Murdoch wrote: > [...] > > It never gets to evaluating it. It is not a legal R statement, so the parser signals an error. > If you want to pass arbitrary strings to a function, you need to put them in quotes. I see. I thought it

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread Bert Gunter
FWIW: 1. I agree that this is an idea worth considering. Especially now that R has become so widely used among practitioners who are neither especially software literate nor interested in poring over R manuals (as I did when I first learned R). They have explicit tasks to do and just want to get

Re: [R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread Duncan Murdoch
On 12/04/2016 9:21 AM, ProfJCNash wrote: "The documentation aims to be accurate, not necessarily clear." > I notice that none of the critics > in this thread have offered improvements on what is there. This issue is as old as documented things. With software it is particularly nasty,

Re: [R] formula argument evaluation

2016-04-12 Thread Keith Jewell
On 12/04/2016 11:24, Adrian Dușa wrote: I have a simple function such as: foo <- function(x) { call <- lapply(match.call(), deparse) testit <- capture.output(tryCatch(eval(x), error = function(e) e)) if (grepl("Error", testit)) { return(call$x) } } and I would like

Re: [R] [FORGED] Re: [FORGED] Re: identical() versus sapply()

2016-04-12 Thread Michael Dewey
Short comment inline On 12/04/2016 12:45, John Kane wrote: Thank you Rolf. fortune(350) was the link I was trying to remember. I believe! I believe in the documentation. It can be incredibly difficult to document something and unless one has an editor to read and 'try' to interpret the

Re: [R-es] Procesos paralelos

2016-04-12 Thread Gilsanz, Jose Luis
Miguel: Mil gracias por tu sugerencia de usar la barra de progreso tcltk , me funciona perfectamente y además la barra de progreso es más bonita ☺ Ahora me entra la curiosidad malsana de saber porque con la barra de windows no sale la barrra y con tcltk si que aparece. Carlos: No

[R] Documentation: Was -- identical() versus sapply()

2016-04-12 Thread ProfJCNash
"The documentation aims to be accurate, not necessarily clear." > I notice that none of the critics > in this thread have offered improvements on what is there. This issue is as old as documented things. With software it is particularly nasty, especially when we want the software to

Re: [R] [FORGED] Re: [FORGED] Re: identical() versus sapply()

2016-04-12 Thread Duncan Murdoch
On 11/04/2016 11:34 PM, Rolf Turner wrote: On 12/04/16 14:45, Duncan Murdoch wrote: On 11/04/2016 10:18 PM, Bert Gunter wrote: "The documentation aims to be accurate, not necessarily clear." !!! I hope that is not the case! Accurate documentation that is confusing is not very useful. I

[R] Dispatch issue in package check?

2016-04-12 Thread Szumiloski, John
Dear useRs, I am developing a package using RStudio and roxygen markup files. I have run into a problem while checking. The relevant function is a generic S3 statistical function modeled on t.test(), with methods. It returns an object of class "htest" etc. Here Is the (anonymized) relevant

Re: [R] [FORGED] Re: [FORGED] Re: identical() versus sapply()

2016-04-12 Thread John Kane
Thank you Rolf. fortune(350) was the link I was trying to remember. I believe! I believe in the documentation. It can be incredibly difficult to document something and unless one has an editor to read and 'try' to interpret the results the original writer may not realise just how opaque the

Re: [R] [FORGED] Re: identical() versus sapply()

2016-04-12 Thread John Kane
> -Original Message- > From: bgunter.4...@gmail.com > Sent: Mon, 11 Apr 2016 19:18:39 -0700 > To: murdoch.dun...@gmail.com > Subject: Re: [R] [FORGED] Re: identical() versus sapply() > > "The documentation aims to be accurate, not necessarily clear." > > !!! > > I hope that is not

Re: [R] Adding Two-Headed Arrow in map legend

2016-04-12 Thread Jim Lemon
Hi Milu, There is a two-headed arrow on the image you sent, and it seems to be where you specified. Did you want it beneath the map, as: par(xpd=TRUE) arrows(-22,54.75,-22,74,code=3) par(xpd=FALSE) Jim On Tue, Apr 12, 2016 at 7:58 PM, Miluji Sb wrote: > Dear Jim, > > Thanks

Re: [R] formula argument evaluation

2016-04-12 Thread Duncan Murdoch
On 12/04/2016 6:24 AM, Adrian Dușa wrote: I have a simple function such as: foo <- function(x) { call <- lapply(match.call(), deparse) testit <- capture.output(tryCatch(eval(x), error = function(e) e)) if (grepl("Error", testit)) { return(call$x) } } and I would

Re: [R-es] Random Forest para clasificación

2016-04-12 Thread Jesús Para Fernández
Voy a investigar mas el forestFloor, seguramente vuelva en un par de d�as con dudas. Gracias chicos :) Por cierto, Carlos, �c�mo haces para encontrar siempre la informaci�n necesaria en tan poco tiempo? Date: Tue, 12 Apr 2016 12:00:42 +0200 Subject: Re: [R-es] Random Forest para clasificaci�n

[R] R integration with SAP-HANA and SQLScripting

2016-04-12 Thread Griffiths, Michael
Dear R forum, I am seeking relevant material that discusses processes and methods of incorporating R code into SAP-HANA. I would greatly appreciate links to any relevant literature. Background research on my part has only found the SAP-HANA R Integration Guide, and several short examples. If the

[R] formula argument evaluation

2016-04-12 Thread Adrian Dușa
I have a simple function such as: foo <- function(x) { call <- lapply(match.call(), deparse) testit <- capture.output(tryCatch(eval(x), error = function(e) e)) if (grepl("Error", testit)) { return(call$x) } } and I would like to detect a formula when x is not an object:

[R-es] Procesos paralelos

2016-04-12 Thread Gilsanz, Jose Luis
Hola: Vuelvo a la carga con algo que resolv� hace a�os y que ahora me ha dejado de funcionar y no consigo arreglar. A ver si alguien me sugiere alg�n enfoque o directamente la solucion. Utilizo R en muchos procesos ETL y la cuesti�n es que me encuentro con que tengo que hacer inserts en un

Re: [R-es] Random Forest para clasificación

2016-04-12 Thread Carlos Ortega
Hola, Entonces si tienes: - La importancia de las variables (esto lo obtienes directamente con "importance"). - Tienes la matriz de confusión. Con esto tienes bastante información sobre la bondad de tu modelo y sobre qué variables influyen más en tu variable objetivo. Lo único que veo

Re: [R-es] Random Forest para clasificación

2016-04-12 Thread Isidro Hidalgo Arellano
Lo razonable es pensar que el "SÍ" de los árboles corresponde a los positivos. Es preocupante que tu modelo se empobrezca bastante al quitar variables "poco importantes" para el random forest. ¿Qué porcentaje de variables has quitado? Un saludo Isidro Hidalgo Arellano Observatorio del Mercado de

Re: [R-es] Random Forest para clasificación

2016-04-12 Thread Jesús Para Fernández
No no, eso lo he sacaod, es decir, tengo la matriz de confusi�n para las OK/NOK, lo que no entiendo es como extraer las conclusiones sobre el modelo, de cara a como afectan las variables. He seguido dos estrategias: 1-Crear arboles de clasificacion con las variables m�s importantes del random

Re: [R-es] Random Forest para clasificación

2016-04-12 Thread Isidro Hidalgo Arellano
Lo razonable es pensar que los positivos son la clase "OK", la rama "SÍ" de los árboles. Un saludo Isidro Hidalgo Arellano Observatorio del Mercado de Trabajo Consejería de Economía, Empresas y Empleo http://www.castillalamancha.es/ -Mensaje original- De: R-help-es

Re: [R-es] Random Forest para clasificación

2016-04-12 Thread Carlos Ortega
Hola, Entonces, por tu última pregunta, tu duda no es realmente sobre el significado de "partialPlot" si no realmente si a la hora de hacer tu modelo, "randomForest" está haciendo una buena o mala clasificación. ¿Es así?. Porque entonces lo que hay que aclarar es otra cosa. Si lo que quieres

Re: [R-es] Random Forest para clasificación

2016-04-12 Thread Jesús Para Fernández
Gracias por la pronta respuesta, pero tras leer la contestaci�n de la gente, sigo sin entender muy bien la explicaci�n. Le responden lo siguiente: "Each point on the partial dependence plot is the average vote percentage in favor of the "Yes trees" class across all observations, given a fixed

Re: [R-es] Package para Selección de Características en Series de Tiempo

2016-04-12 Thread Carlos Ortega
Hola, No hay una solución única a lo que planteas. Incluso los algoritmos que te ayudan en la selección, son eso ayudas sobre lo que tú al final tienes que tomar decisiones. De hecho lo que quieres hacer es casi una rama de estudio dentro de esto del "Machine Learning". Busca por el concepto de

Re: [R-es] Random Forest para clasificación

2016-04-12 Thread Carlos Ortega
Hola, Aquí tienes una explicación: http://stats.stackexchange.com/questions/121383/interpreting-y-axis-of-a-partial-dependence-plots Saludos, Carlos Ortega www.qualityexcellence.es El 12 de abril de 2016, 7:13, Jesús Para Fernández < j.para.fernan...@hotmail.com> escribió: > Buenas, > >