Re: [R] How to average values from grid cells with coordinates

2018-05-18 Thread lily li
Hi Jim, Thanks. Yes, the two assumptions are correct, and they reflect the datasets. I have an uncertainty about the code below. Why do you use abs(blackcells[[i]]$lat - redcell$lat) <1 rather than a different number than 1? Second, why to construct blackcells as a list, rather than a dataframe. B

Re: [R] Exporting to text files

2018-05-18 Thread David Winsemius
Or capture.output Sent from my iPhone > On May 18, 2018, at 12:54 PM, Jeff Newmiller wrote: > > ?sink > >> On May 18, 2018 9:47:25 AM PDT, Ed Siefker wrote: >> I have dose response data analyzed with the package 'drc'. >> 'summary(mymodel)' prints my kinetic parameters. I want >> that text i

Re: [R] drc, ggplot2, and gridExtra

2018-05-18 Thread Eivind K. Dovik
On Fri, 18 May 2018, Ed Siefker wrote: I have dose response data I have analyzed with the 'drc' package. Using plot() works great. I want to arrange my plots and source data on a single page. I think 'gridExtra' is the usual package for this. I could use plot() and par(mfrow=...), but then I

Re: [R] Exporting to text files

2018-05-18 Thread Jeff Newmiller
?sink On May 18, 2018 9:47:25 AM PDT, Ed Siefker wrote: >I have dose response data analyzed with the package 'drc'. >'summary(mymodel)' prints my kinetic parameters. I want >that text in an ASCII text file. I want to get exactly what I >would get if I copied and pasted from the terminal window.

[R] Exporting to text files

2018-05-18 Thread Ed Siefker
I have dose response data analyzed with the package 'drc'. 'summary(mymodel)' prints my kinetic parameters. I want that text in an ASCII text file. I want to get exactly what I would get if I copied and pasted from the terminal window. I've read the documentation on data export to text files her

[R] drc, ggplot2, and gridExtra

2018-05-18 Thread Ed Siefker
I have dose response data I have analyzed with the 'drc' package. Using plot() works great. I want to arrange my plots and source data on a single page. I think 'gridExtra' is the usual package for this. I could use plot() and par(mfrow=...), but then I can't put the source data table on the pag

Re: [R] Convert a list of $NULL into multiple dataframes

2018-05-18 Thread Jim Lemon
Hi Ilio, As far as I can see, this is what you have done: A<-data.frame(V1="Year",V2=1992,V3=1993) B<-data.frame(V1=c("Year","18-19"),V2=c("Average (cm)",178.3), V3=c("N",6309),V4=c("SD",6.39)) A V1 V2 V3 1 Year 1992 1993 B V1 V2 V3 V4 1 Year Average (cm)N SD 2 1

Re: [R] Convert a list of $NULL into multiple dataframes

2018-05-18 Thread John Kane via R-help
There must be a simpler and easier way but it's early here and I am only on my first cup of tea. Just but each element into a data frame. Quick and dirty example: dat1  <- list(aa = 1:20, bb  <- data.frame(xx = 1:5, yy = LETTERS[1:5])) dat2 = data.frame(dat1[[1]]) =

[R] more floating point sensitivity in 3.5.0?

2018-05-18 Thread Anthony Damico
hi all, in the past two days, i've found two places in unrelated code where i needed to substitute something like `x == y` with `isTRUE(all.equal(x,y))` to fix problems that started occurring in 3.5.0 on windows. the release news[1] makes one mention of floating points, but i'm not sur

[R] Convert a list of $NULL into multiple dataframes

2018-05-18 Thread Ilio Fornasero
I have the following list: > tables $`NULL` V1 V2 V3 1 Year 1992 1993 $`NULL` V1 V2 V3V4 1 Age Average (cm) N S