similar to: ¿Reglas de estilo para código en R?

Displaying 20 results from an estimated 900 matches similar to: "¿Reglas de estilo para código en R?"

2014 Sep 18
2
formatR 1.0 caused error
Recently in our R 3.1.0 installation the package formatR was upgraded to version 1.0, doing my usual thing, I got the following error, and the destination html file was not generated. What can I do if I want to stay at the current formatR version? Jun Error: unrecognized fields specified in html_dependency: attachment In addition: Warning messages: 1: 'function (...) {
2010 Apr 13
1
formatR: farewell to ugly R code
This is an announcement of the release of an R package 'formatR', which can help us format our R code to make it more human-readable. If you have ugly (I mean unformatted) R code like this: ?# rotation of the word "Animation" # in a loop; change the angle and color # step by step for (i in 1:360) { ? # redraw the plot again and again
2010 Apr 13
1
formatR: farewell to ugly R code
This is an announcement of the release of an R package 'formatR', which can help us format our R code to make it more human-readable. If you have ugly (I mean unformatted) R code like this: ?# rotation of the word "Animation" # in a loop; change the angle and color # step by step for (i in 1:360) { ? # redraw the plot again and again
2010 Apr 19
1
Follow up on installing formatR...
Good morning folks: Made a second go at installing this and succeeded, but with some strange behaviours along the way. First the system back story. Using up to date edition Ubuntu 8.04 Using up to date edition of R 2.10.1 Using the Toronto, Ontario repository to draw from. After the first attempt ended up with two of the four dependencies installed so only the Rgtk related items would be
2018 Mar 07
2
Reglas de asociación en un cluster Hadoop
Hola, Quizás no es el ámbito más apropiado, pero vale la pena intentar. ¿Existe alguna implementación en R del modelo de reglas de asociación que pueda realizar el cálculo en paralelo sobre un cluster Hadoop? He visto los paquetes que 'paralelizan' R, pero no mencionan nada acerca de modelos de reglas de asociación. Saludos -- Oscar Benitez [[alternative HTML version deleted]]
2011 Jun 06
2
Obtener las reglas de un árbol de decisión
Hola, Me gustaría obtener las reglas que genero con un árbol de decicisión creado con party. Algo parecido a lo que realiza esta función con rpart http://www.togaware.com/datamining/survivor/Convert_Tree.html la idea es disponer de esas reglas en un fichero de texto. En general si alguien sabe de algún paquete que permita obtener el código que genera la puntuación, el "score" para un
2010 Nov 02
8
Una guía de estilo para programar en R... ¿comentarios?
Hola, ¿qué tal? Hace poco vi que Google había hecho pública su guía de estilo interna para programar en R: http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html Me tomé la libertad de traducirla: http://datanalytics.com/guia_estilo_r.html Cuanto más pienso en ella, más carencias veo. Escribí sobre ello en mi blog (
2012 Jun 04
1
aplicar reglas de un kmeans
Buenas tardes. Quisiera saber como puedo aplicar las reglas de un kmeans a otra base, para hacer un proceso de validaciòn de la segmentaciòn. En SAS, se cuenta con el argumento "OUTSEED", ¿què debo tener en cuenta en R? Mil gracias. -- Luis Alberto López González [[alternative HTML version deleted]]
2010 Nov 05
1
Una guía de estilo para programar en R...
Hola, He seguido con interés el mensaje de Carlos sobre la guía de estilo para programar en R aparecida en Google y las reacciones que ha generado. En líneas generales creo que la guía Google es bastante floja, estoy de acuerdo con la mayoría de comentarios iniciales de Carlos y en particular con el hecho de que no trata en absoluto (ni lógicamente promueve) la creación de packages. Otro
2016 May 03
2
vignette/knitr help
I need some help understanding a problem running the tests on the 'digest' package. Initially, I got the message that the 'knitr' package was needed to run vignettes: Running vignettes for package ?digest? Error in loadVignetteBuilder(vigns$pkgdir) : vignette builder 'knitr' not found So I installed the knitr package and all its dependents (?mime?, ?stringi?,
2016 Apr 01
2
Gráficos estilo "hecho a mano"
Se ha borrado un adjunto en formato HTML... URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20160401/205f15ae/attachment.html>
2010 Dec 03
0
formatR update (0.1-5)
In formatR 0.1-5, the dependency on the gWidgets and animation packages are removed. The GUI by gWidgets is optional now. Meanwhile, the function tidy.source() has been moved from the animation package to this package. > library(formatR) > tidy.source(textConnection(' # rotation of the word "Animation" # in a loop; change the angle and color # step by step for (i in
2010 Dec 03
0
formatR update (0.1-5)
In formatR 0.1-5, the dependency on the gWidgets and animation packages are removed. The GUI by gWidgets is optional now. Meanwhile, the function tidy.source() has been moved from the animation package to this package. > library(formatR) > tidy.source(textConnection(' # rotation of the word "Animation" # in a loop; change the angle and color # step by step for (i in
2013 Jan 24
1
Recommendation for website to format R code
Hi list, Could anyone recommend some good website for formatting R code? For example, when you copy paste R code to gmail and back to R, it loses its format, the dash symbol causes errors. I've had someone used it to format my code here on the list, but can't find it anymore. Mike [[alternative HTML version deleted]]
2013 Mar 11
2
Función Inspect() en "arules" package
Buenas tardes, Necesito ayuda con la función inspect() del paquete "arules". Mis comandos son: r1 <- apriori(tran, parameter=list(support=0.012, confidence=0.7)) r1 summary(r1) #todo bien, tengo 5 reglas y todo claro en el resume #pero al pedir inspect(r1) inspect(sort(r1, by = "confidence")) me arroja el error: Error en UseMethod("inspect", x) : no
2013 Sep 27
2
Ayuda erreficando un código
Hola a todos, Después de presentar ayer en las jornadas de usuarios de R de Madrid el problema de las ocho reinas y su solución con R, unas de las críticas que recibí es que el código de la solución no iba mucho con el estilo de R. En concreto, la función que recibe una lista con la posición de las reinas (ejemplo (1,5,2,3,4,6,8,7)) y calcula si se atacan (comparten la misma diagonal). El código
2013 Feb 17
1
tidy.source() gets confused when # is not a comment but a part of a literal string?
I needed to clean someone else code and run it through tidy.source. It encountered a number of hangups which after some experimentation lead me to suspect that the culprit is # symbol when it is a part of literal string. For example if i copy the following to the clipboard confuse.tidy <-    function() {   txt <- 'abra # cadabra' } and run with default arguments >tidy.source()
2018 Oct 04
3
help with samba and iptables
Hi community, i have a samba server that work's great, but my friends of IT security said that is vulnerable without a firewall,  i try to set an iptables firewall using the official documentation but is not working (obviously), this ti my config: #!/bin/sh echo n Aplicando Reglas de Firewall... ## FLUSH de reglas iptables -F iptables -X iptables -Z iptables -t nat -F ## Establecemos
2012 Sep 20
0
coloreado de código en knitr
Hola a todos. Voy a hacer una pregunta sin mucha importancia, pero quería saber si a alguien más le pasa. Acabo de actualizar el paquete knitr y resulta que antes, al pasar un chunk a pdf, coloreaba en naranja los parámetros de las funciones. Por ejemplo si ponía modelo <- glm( var1 ~ var2, data=datos, family=binomial) data y family los colereaba en naranja, pero ahora ya no. Los
2023 Mar 09
1
reemplazar valores en texto según condiciones
Hola, Algo que me está pasando con esta función es lo siguiente: A "p1" lo tengo que reemplazar por "p1_integra_datos" y a "p10" por "p10_cuales_rep", pero como p10 contiene p1, y así pasa con otras preguntas (p2 y p20, por ejemplo), me los reemplaza en ambas, cuándo lo que busco es otra cosa. reglas$condicion_final <-