Re: [R] ggplot and boxplots

2018-03-13 Thread Yectli Huerta via R-help
On March 12, 2018 11:59 PM, Richard M. Heiberger wrote: > It looks like your V3 is a factor. > > testing_ggplot <- data.frame( > > V1=factor(c(256, 256, 256, 272, 272, 272)), > > V2=c("Disabled", "Disabled", "Enabled", "Disabled", "Enabled", "Enabled"), > > V3=681:686) >

Re: [R] Learning advanced R

2018-03-13 Thread Rich Shepard
On Tue, 13 Mar 2018, Mark Leeds wrote: See Hadley's advanced R +1 A very well writte, highly useful book. Recommended. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Learning advanced R

2018-03-13 Thread Bert Gunter
See here for some suggestions: https://www.rstudio.com/online-learning/#R Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Mar 13, 2018 at

Re: [R] Learning advanced R

2018-03-13 Thread Mark Leeds
See Hadley's advanced R along Thomas Mailund's books. I haven't gone through them carefully but they both seem (from what I've looked at ) to be the best ones for that. Mentions of others are appreciated. On Tue, Mar 13, 2018 at 5:26 PM, Nik Tuzov wrote: > > Hello:

[R] Learning advanced R

2018-03-13 Thread Nik Tuzov
Hello: Could you please suggest the best way to become an "advanced" R programmer. I went through "R for dummies" by de Vries and Meys and I can see two ways to proceed: 1) Get a more advanced textbook. E.g. could you recommend Gentleman, "R for Bioinformatics"? 2) Because textbooks are

[R] plot problem

2018-03-13 Thread Miloš Žarković
Hi, I am just curious why does this happen: I use Goldencheetah to analyse my run. It can call R to do further analysis. I run into interesting problem (for me at least). If I plot data using plot(d$time,d$heart.rate) everything is OK if I use plot(d$heart.rate~d$time) I got error: Error in

Re: [R] Need Help on Batch forecasting for multiple items at one go

2018-03-13 Thread David Winsemius
> On Mar 12, 2018, at 8:47 PM, Manish Mukherjee > wrote: > > Hi All, > > > I have time series weekly data for number of servers for 62 weeks. i have to > forecast for next 8 weeks on what will be the usage. i have a challenge in > the code where it is giving

Re: [R] Possible Improvement to sapply

2018-03-13 Thread Henrik Bengtsson
FYI, in R devel (to become 3.5.0), there's isFALSE() which will cut some corners compared to identical(): > microbenchmark::microbenchmark(identical(FALSE, FALSE), isFALSE(FALSE)) Unit: nanoseconds expr min lqmean median uq max neval identical(FALSE, FALSE) 984

Re: [R] Possible Improvement to sapply

2018-03-13 Thread William Dunlap via R-help
Could your code use vapply instead of sapply? vapply forces you to declare the type and dimensions of FUN's output and stops if any call to FUN does not match the declaration. It can use much less memory and time than sapply because it fills in the output array as it goes instead of calling

Re: [R] Possible Improvement to sapply

2018-03-13 Thread Martin Maechler
> Doran, Harold > on Tue, 13 Mar 2018 16:14:19 + writes: > You’re right, it sure does. My suggestion causes it to fail when simplify = ‘array’ > From: William Dunlap [mailto:wdun...@tibco.com] > Sent: Tuesday, March 13, 2018 12:11 PM > To: Doran,

Re: [R] Possible Improvement to sapply

2018-03-13 Thread Doran, Harold
Quite possibly, and I’ll look into that. Aside from the work I was doing, however, I wonder if there is a way such that sapply could avoid the overhead of having to call the identical function to determine the conditional path. From: William Dunlap [mailto:wdun...@tibco.com] Sent: Tuesday,

Re: [R] Possible Improvement to sapply

2018-03-13 Thread Doran, Harold
You’re right, it sure does. My suggestion causes it to fail when simplify = ‘array’ From: William Dunlap [mailto:wdun...@tibco.com] Sent: Tuesday, March 13, 2018 12:11 PM To: Doran, Harold Cc: r-help@r-project.org Subject: Re: [R] Possible Improvement to sapply Wouldn't that

Re: [R] Possible Improvement to sapply

2018-03-13 Thread William Dunlap via R-help
Wouldn't that change how simplify='array' is handled? > str(sapply(1:3, function(x)diag(x,5,2), simplify="array")) int [1:5, 1:2, 1:3] 1 0 0 0 0 0 1 0 0 0 ... > str(sapply(1:3, function(x)diag(x,5,2), simplify=TRUE)) int [1:10, 1:3] 1 0 0 0 0 0 1 0 0 0 ... > str(sapply(1:3,

Re: [R] Understanding TS objects

2018-03-13 Thread Jeff Newmiller
Perhaps mydata is a matrix or matrix-like object, and you should create one ts object for each column? -- Sent from my phone. Please excuse my brevity. On March 13, 2018 7:25:31 AM PDT, JEFFERY REICHMAN wrote: >R Help Community > >I'm trying to understand time series

Re: [R] Understanding TS objects

2018-03-13 Thread Achim Zeileis
On Tue, 13 Mar 2018, JEFFERY REICHMAN wrote: R Help Community I'm trying to understand time series (TS) objects. Thought I understood but recently have run into a series of error messages that I'm not sure how to handle. I have 15 years of quarterly data and I typically create a TS object

[R] Understanding TS objects

2018-03-13 Thread JEFFERY REICHMAN
R Help Community I'm trying to understand time series (TS) objects. Thought I understood but recently have run into a series of error messages that I'm not sure how to handle. I have 15 years of quarterly data and I typically create a TS object via something like... data.ts <- ts(mydata,

Re: [R-es] stacked barplot

2018-03-13 Thread Mauricio Mardones Inostroza
https://stackoverflow.com/questions/20349929/stacked-bar-plot-in-r Va! El 13 de marzo de 2018, 11:20, Mauricio Mardones Inostroza < mauricio.mardo...@ifop.cl> escribió: > Hola Javier > > Quizás esta simple guía te pueda ayudar. > > Saludos. > > El 13 de marzo de 2018, 11:02, Javier Valdes

Re: [R-es] stacked barplot

2018-03-13 Thread Mauricio Mardones Inostroza
Hola Javier Quizás esta simple guía te pueda ayudar. Saludos. El 13 de marzo de 2018, 11:02, Javier Valdes Cantallopts (DGA) < javier.val...@mop.gov.cl> escribió: > Hola A todos. > > > > He tratado de generar un STACKED BARPLOT EN R, esperando que sea tan > sencillo como en Excel, la parecer

Re: [R] Possible Improvement to sapply

2018-03-13 Thread Doran, Harold
Martin In terms of context of the actual problem, sapply is called millions of times because the work involves scoring individual students who took a test. A score for student A is generated and then student B and such and there are millions of students. The psychometric process of scoring

[R-es] stacked barplot

2018-03-13 Thread Javier Valdes Cantallopts (DGA)
Hola A todos. He tratado de generar un STACKED BARPLOT EN R, esperando que sea tan sencillo como en Excel, la parecer no es tan sencillo... Alguien conoce una forma sencilla de hacerlo, considerando que son 5 variables por mes. [Descripción: FIRMA3]

Re: [R] Possible Improvement to sapply

2018-03-13 Thread Martin Morgan
On 03/13/2018 09:23 AM, Doran, Harold wrote: While working with sapply, the documentation states that the simplify argument will yield a vector, matrix etc "when possible". I was curious how the code actually defined "as possible" and see this within the function if (!identical(simplify,

[R] Possible Improvement to sapply

2018-03-13 Thread Doran, Harold
While working with sapply, the documentation states that the simplify argument will yield a vector, matrix etc "when possible". I was curious how the code actually defined "as possible" and see this within the function if (!identical(simplify, FALSE) && length(answer)) This seems superfluous

Re: [R] Equivalent of gtools::mixedsort in R base

2018-03-13 Thread Sebastien Bihorel
Thanks. - Original Message - From: "Gabor Grothendieck" To: "Sebastien Bihorel" Cc: r-help@r-project.org Sent: Monday, March 12, 2018 3:49:10 PM Subject: Re: [R] Equivalent of gtools::mixedsort in R base split any mixed

[R] [R-pkgs] pathfindR: An R Package for Pathway Enrichment Analysis Utilizing Active Subnetworks

2018-03-13 Thread Ege Ulgen
Hello all, I would like to introduce our group's new bioinformatics package to you: pathfindR This tool is designed to improve pathway enrichment analysis by firstly identifying active subnetworksin differential expression/methylation data using a

[R] Need Help on Batch forecasting for multiple items at one go

2018-03-13 Thread Manish Mukherjee
Hi All, I have time series weekly data for number of servers for 62 weeks. i have to forecast for next 8 weeks on what will be the usage. i have a challenge in the code where it is giving output for the last week value of all the servers, instead i need the output for next 8 weeks . i am