[R] About a R learning course

2014-08-03 Thread super
Hadley wickham is goting to teach a two day course on advanced R and package development in NYC, Sep 8-9. You can learn more in https://www.eventbrite.com/e/master-r-developer-workshop-tickets-11846598495 Could students from NYC make a trial to recording the course if permitted? [[a

Re: [R] How to overlay contourplot of a dataset A and a levelplot of a dataset B?

2014-08-03 Thread Pascal Oettli
Hi Charles, You don't need "as.layer". levelplot(z ~ x*y,grid2) + contourplot(z ~ x*y,grid1) is enough. Regards, Pascal On Sun, Aug 3, 2014 at 5:59 PM, Charles Novaes de Santana wrote: > Dear all, > > Just to inform that I have solved my problem in a very elegant way, thanks > to the layer ap

Re: [R] Convert some columns of List to dataframe R

2014-08-03 Thread Zilefac Elvis
Hi John, Thanks. As you said, I want the "Site" values to become individual variable names whose value is in the "x" column: Output should look exactly like: Year G101 G102 2001 33.1 34 Thanks, Atem. On Sunday, August 3, 2014 4:48 PM, John McKown wrote: On Sun, Aug 3, 2014 at 5:43 PM, J

Re: [R] Convert some columns of List to dataframe R

2014-08-03 Thread John McKown
On Sun, Aug 3, 2014 at 5:12 PM, Zilefac Elvis wrote: > Dear All, > I have a List in R and would like to convert it to data.frame. > Below is a reproducible example. I can do something like: > > x1<-do.call(cbind.data.frame, lst3) #OR > x1<-as.data.frame(lst3). > > However, my output looks like thi

[R] Convert some columns of List to dataframe R

2014-08-03 Thread Zilefac Elvis
Dear All, I have a List in R and would like to convert it to data.frame. Below is a reproducible example. I can do something like:  x1<-do.call(cbind.data.frame, lst3) #OR x1<-as.data.frame(lst3). However, my output looks like this: Year Site  x   Year Site x 2001 G101 33.1 2001 G102 34 I wo

Re: [R] qqnorm with histogram?

2014-08-03 Thread Jim Lemon
Hi Spencer, The last example for the twoord.plot function (plotrix) does this. Jim On Sun, 3 Aug 2014 12:38:10 PM Spencer Graves wrote: >Does a function exist that combines a normal probability plot > with a histogram and maybe a density estimate on the same plot? > > >I'm revis

Re: [R] Extract particular months from List in R

2014-08-03 Thread Zilefac Elvis
Great! Thanks very much Uwe. AT. On Sunday, August 3, 2014 2:12 PM, Uwe Ligges wrote: On 03.08.2014 21:23, Zilefac Elvis wrote: > Hi Uwe, > Thanks for replying. > Here is a reproducible example. > I would like to extract data for the Months of c(6,7,8). > Output files should have the same num

Re: [R] Extract particular months from List in R

2014-08-03 Thread Uwe Ligges
On 03.08.2014 21:23, Zilefac Elvis wrote: Hi Uwe, Thanks for replying. Here is a reproducible example. I would like to extract data for the Months of c(6,7,8). Output files should have the same number of columns as input files. Thanks. [SNIP] If your data is in an object "dat", then: lapp

[R] qqnorm with histogram?

2014-08-03 Thread Spencer Graves
Does a function exist that combines a normal probability plot with a histogram and maybe a density estimate on the same plot? I'm revising the Wikipedia article on "Normal probability plot", and I think it would be good to provide examples of this. Thanks, Spencer

Re: [R] Extract particular months from List in R

2014-08-03 Thread Zilefac Elvis
Hi Uwe, Thanks for replying. Here is a reproducible example.  I would like to extract data for the Months of c(6,7,8).  Output files should have the same number of columns as input files. Thanks. --- list(structure(list(Y

Re: [R] Reading specific rows and columns xlsx file: Error in strsplit(names(res), "\\.") : non-character argument

2014-08-03 Thread Margherita Di Leo
Ahem.. solved. I had switched between rows and columns.. Sorry for the noise. Best, m On Sun, Aug 3, 2014 at 6:33 PM, Margherita Di Leo wrote: > Hi, > > I am trying to read specific rows and columns from a xlsx file using the > following commands: > > # Read rows 18-23 and columns 7-15 into R

[R] Reading specific rows and columns xlsx file: Error in strsplit(names(res), "\\.") : non-character argument

2014-08-03 Thread Margherita Di Leo
Hi, I am trying to read specific rows and columns from a xlsx file using the following commands: # Read rows 18-23 and columns 7-15 into R and assign the result to a variable # called dat colIndex <- 18:23 rowIndex <- 7:15 dat <- read.xlsx("./data/natural_gas.xlsx", sheetIndex = 1, header = TRUE

Re: [R] Rmarkdown Installation error on Shiny server , CentOS 6.4 x64

2014-08-03 Thread Jeff Newmiller
When working on the bleeding edge (which github usually implies) it can be crucial to stay up to date. You might try updating R (your example seems to be working for me on R3.1.1 on Ubuntu 14.04). You should also cc the maintainer of contributed packages (?maintainer). Finally, you should read t

Re: [R] lattice, latticeExtra: Adding moving averages to double y plot

2014-08-03 Thread Duncan Mackay
Hi Anna I got down to plot2_3_concentration <- xyplot(Value ~ Year, datamystuff23, groups = Type, ... and got an error: Error in eval(substitute(groups), data, environment(x)) : object 'datamystuff23' not found so I did not pursue further Note : from ?doubleYScale Note that most settings,

[R] Rmarkdown Installation error on Shiny server , CentOS 6.4 x64

2014-08-03 Thread billy am
Hi , I am having difficulty installation rmarkdown on the centos shiny server. Can anyone help? Thanks! > devtools::install_github("rstudio/rmarkdown") Installing github repo rmarkdown/master from rstudio Downloading master.zip from https://github.com/rstudio/rmarkdown/archive/master. zip Install

Re: [R] How to remove latex message from a resulting rmarkdown pdf?

2014-08-03 Thread Eduardo M. A. M.Mendes
Many thanks. I was checking print options instead of print.xtable. Ed On Aug 3, 2014, at 4:44 AM, Uwe Ligges wrote: > > > On 03.08.2014 02:58, Eduardo M. A. M.Mendes wrote: >> Hello >> >> I am using rmarkdown to write the partial results of my research project. >> Both html and pdf files

Re: [R] How to overlay contourplot of a dataset A and a levelplot of a dataset B?

2014-08-03 Thread Charles Novaes de Santana
Dear all, Just to inform that I have solved my problem in a very elegant way, thanks to the layer approach given by package latticeExtra. After loading my grids like before: x<-1:10 y<-1:10 grid1<-expand.grid(x=x,y=y) grid2<-expand.grid(x=x,y=y) z1<-grid1$x^2 + grid1$y^2 z2<-2*grid2$x^2 - grid2$

Re: [R] Extract particular months from List in R

2014-08-03 Thread Uwe Ligges
On 03.08.2014 07:17, Zilefac Elvis wrote: Hi ALL, I have a List object in R. The dataframes in the List have equal rows and columns. How can I extract from the List, data corresponding to say c(June, July , August)? Remember, it is a List object, containing 100 dataframes, with daily data ar

Re: [R] How to remove latex message from a resulting rmarkdown pdf?

2014-08-03 Thread Uwe Ligges
On 03.08.2014 02:58, Eduardo M. A. M.Mendes wrote: Hello I am using rmarkdown to write the partial results of my research project. Both html and pdf files are used. In the resulting pdf xtable writes the following msg: % latex table generated in R 3.1.1 by xtable 1.7-3 package % Sat Aug 2