Re: [R] Getting Started

2017-01-10 Thread Dalthorp, Daniel
By "contribute", do you mean you have a package (or potential package) that you'd like to share? Or do you have something else in mind? -Dan On Tue, Jan 10, 2017 at 9:33 AM, Lakshya Agrawal wrote: > Hello, > I would like to contribute to R i have gone over the

Re: [R] Getting Started

2017-01-10 Thread Bert Gunter
You obviously know little about R or you would not have asked that question. So heeding Jim's advice is clearly your first step. A second would be to read the "Writing R extensions" manual to learn about R packages. A third would be to check out the CRAN task views to get a sense of what's

Re: [R] Getting Started

2017-01-10 Thread Jim Lemon
Hi Lakshya, One good way to contribute is to try to do something in R, and if you see a way to do it better or more easily, you may have an improvement that will find its way into R. This usually involves a lot of discovering that someone else has already done it, but as your knowledge of R

Re: [R-es] AYUDA TukeyHSD

2017-01-10 Thread Emilio L. Cano
Hola, Una forma rápida de convertir todos los nombres de columnas una vez importados los datos es: names(nombredeldataframe) <- make.names(names(nombredeldataframe) Un saludo, Emilio El 10 de enero de 2017, 19:51, Carlos J. Gil Bellosta escribió: > Primero, deberías

[R] Revolutions blog: December 2016 roundup

2017-01-10 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog: http://blog.revolutionanalytics.com and every month I post a summary of articles from the previous month of particular interest to readers of r-help. And in case

Re: [R-es] Cut con skaprlyr

2017-01-10 Thread Carlos Ortega
Hola, Si tienes el data.frame en Spark, y estás utilizando "sparklyr" (es lo que entiendo del título de tu pregunta) entonces puedes utilizar los verbos de "dplyr", en este caso el verbo a aplicar es el "select()". Y sería algo así como esto, utilizando los pipes: tu_data_frame_cortado <-

Re: [R-es] AYUDA TukeyHSD

2017-01-10 Thread Carlos J. Gil Bellosta
Primero, deberías hacer TukeyHSD(ANOVAGalMan3, "Sample*`Purification-step`",ordered = TRUE) Segundo, ni eso te va a funcionar. Cambia el nombre de tus columnas para que no tengan guiones ni tengas que usar comillas. Arrastrar nombres con caracteres inválidos es garantía de problemas. Un

[R] Getting Started

2017-01-10 Thread Lakshya Agrawal
Hello, I would like to contribute to R i have gone over the development page but could find anything on how to get started .Please can someone help me getting started. Sorry if i have overlooked something. [[alternative HTML version deleted]]

[R-es] AYUDA TukeyHSD

2017-01-10 Thread Pilar Vilaro
Hola, estoy intentando hacer un Tukey post test y no me lo permite. Hice el anova con aov sin problemas, pero al hacer el Tukey, me dice: > TukeyHSD(ANOVAGalMan3,Sample*`Purification-step`,ordered = TRUE)Error in > `[.data.frame`(mf, mf.cols[[i]]) : undefined columns selected aclaro que

[R] Announcing the biggest French-speaking R Conference in North America - R à Québec 2017

2017-01-10 Thread Pierre Racine
We are posting this info here because most French-speaking R users in North America use this forum even if English is not their first language. Le comité scientifique du Colloque R à Québec 2017 (http://raquebec.ulaval.ca) recueille jusqu'au 15 janvier 2017 des propositions de conférences

Re: [R] PNG File in R Markdown HTML

2017-01-10 Thread Jeff Newmiller
Someone here may have an answer for you, but in general to solve this you need to use CSS which implies you also need to understand HTML, and neither of these subjects are on topic here (where the topic is the R language). Once you know what you want the output of knitr to look like then you

Re: [R] how to proof the trend of two columns of data?

2017-01-10 Thread David L Carlson
As Rui noted, to get a trend you need to focus on percent gray vs age since hair color is not an ordinal/rank variable. Then use a measure of association designed for rank variables of which there are many: Spearman’s r, Kendall’s tau, gamma, tau-c, Somers-d. All of them are available in

Re: [R] Assessing the name of an object within an argument

2017-01-10 Thread Hadley Wickham
You might find http://adv-r.had.co.nz/Computing-on-the-language.html helpful. Hadley On Tue, Jan 10, 2017 at 2:49 AM, wrote: > Hi All, > > I have a function like > > my_func <- function(dataset) > { > some operation > } > > Now I would like not only to operate on the

Re: [R] error in an univariate integration involving a bivariate normal CDF

2017-01-10 Thread William Dunlap via R-help
integrand=function(xx,y=1,MU=MU,Sigma=Sigma) { dnorm(xx,mean=MU[1],sd=sqrt(Sigma[1,1]))*pmvnorm(lower=c(-Inf,-Inf),upper=c(xx,y),mean=MU,sigma=Sigma) } The integrand must be a function that returns a vector the length of its first argument (integrate will pass it a short vector

[R] error in an univariate integration involving a bivariate normal CDF

2017-01-10 Thread Jingqin luo via R-help
R users,I encountered some error message when trying a univariate integration involving a bivariate normal CDF with mean MU and variance matrix Sigma. Below are my code:MU=c(1,3) Sigma=matrix(c(1,0.5,0.5,1.5),2,2) integrand=function(xx,y=1,MU=MU,Sigma=Sigma) {

Re: [R] how to proof the trend of two columns of data?

2017-01-10 Thread vod vos
as far as I know, ?kruskal.test will show us the differences between three or more groups. But it could show the trend. On 星期一, 09 一月 2017 10:12:14 -0800 David L Carlson dcarl...@tamu.edu wrote The list does not assist with homework problems. If this is not a class

Re: [ESS] [emacs-ess/ESS] require Emacs 24.3 or higher (c7a2306)

2017-01-10 Thread Sparapani, Rodney
I was just being pro-active. 24.1 and 24.2 are so buggy they should be withdrawn (except on Windows ironically). Given the many hours I have already spent debugging these emacs bugs (which are fixed in 24.3), I don’t think we should do anything to support these versions. The users will be

[R] PNG File in R Markdown HTML

2017-01-10 Thread Shivi Bhatia
Hi Team, I am successfully able to add the company logo to the R markdown file using the code below: ```{r, fig.width=3, fig.height=15,echo=FALSE, warning=FALSE, message=FALSE} library(png) library(grid) img <- readPNG("D:/Shivi/R Project/Name.png") grid.raster(img) ``` However the image gets

Re: [R] Assessing the name of an object within an argument

2017-01-10 Thread Thomas Mailund
Yes, I was too fast there, sorry. I sent a correction right after but must have picked Reply instead of Replay All. Cheers Thomas On 10 January 2017 at 10:31:30, Bert Gunter (bgunter.4...@gmail.com) wrote: This is false. formals() gives the FORMAL argument

Re: [R] Assessing the name of an object within an argument

2017-01-10 Thread Bert Gunter
This is false. formals() gives the FORMAL argument list of the function, not the ACTUAL arguments supplied. That is obtained by the construction deparse(substitute(dataset)) The OP should consult a good R tutorial for this and other uses of substitute(), part of the "computing on the language"

Re: [R] Assessing the name of an object within an argument

2017-01-10 Thread Thomas Mailund
  You can get that using `formals()`. my_func <- function(dataset = iris) {   #print(dataset) # here I do not want to print the dataset but the name   # of the object - iris in this case - instead   print(formals()$dataset) # this is what you want } This gives you what the arguments were

[R] Assessing the name of an object within an argument

2017-01-10 Thread G . Maubach
Hi All, I have a function like my_func <- function(dataset) { some operation } Now I would like not only to operate on the dataset (how this is done is obvious) but I would like to get the name of the dataset handed over as an argument. Example: my_func <- function(dataset = iris) {

Re: [R-es] Asignar número de semana

2017-01-10 Thread miguel.angel.rodriguez.muinos
Hola Rubén. El tema de trabajar con fechas no es nada trivial y tiene su importancia. Cuándo empieza una semana y/o cuál es la primera semana del año (por ejemplo) son aspectos que hay que tener bien definidos a la hora de trabajar con fechas. Te recomiendo que le eches un ojo a la norma ISO