[R] Problem with Rd2.tex tduring compilation

2018-03-05 Thread michael tsagris via R-help
Hello, I am receiving this message when uploading my R package to rdevel. https://win-builder.r-project.org/incoming_pretest/180305_110240_Compositional_29/00check.log Can anybody please help? [[alternative HTML version deleted]] __ R-help@r-pr

Re: [R] Problem with Rd2.tex tduring compilation

2018-03-05 Thread Michael Dewey
The error is that one of your documentation files is failing. Try compiling each one separately with R CMD Rd2pdf yourfilenamehere.Rd and see what happens. There is a list especially for package developers which might be better in future. Michael On 05/03/2018 10:51, michael tsagris via R-he

[R] Σχετ: Problem with Rd2.tex tduring compilation

2018-03-05 Thread michael tsagris via R-help
Hi and thanks for the prompt reply. I cannot say I understood or know what to do. Can you please tell me which is this mailing list? Στις 2:15 μ.μ. Δευτέρα, 5 Μαρτίου 2018, ο/η Michael Dewey έγραψε: The error is that one of your documentation files is failing. Try compiling each one

Re: [R] Σχετ: Problem with Rd2.tex tduring compilation

2018-03-05 Thread Michael Dewey
https://stat.ethz.ch/mailman/listinfo/r-package-devel On 05/03/2018 13:46, michael tsagris wrote: Hi and thanks for the prompt reply. I cannot say I understood or know what to do. Can you please tell me which is this mailing list? Στις 2:15 μ.μ. Δευτέρα, 5 Μαρτίου 2018, ο/η Michael Dewey έ

[R] [R-pkgs] WindCurves

2018-03-05 Thread Neeraj Dhanraj
Dear all Have a look at 'WindCurves' package. The package WindCurves is a tool used to fit the wind turbine power curves. It can be useful for researchers, data analysts/scientist, practitioners, statistians and students working on wind turbine power curves. The package and Vignette are available

[R] WAAAYYY OFF TOPIC -- For Statistics Buffs only

2018-03-05 Thread Bert Gunter
A really nice example of an instance where an "outlier" was the whole story scientifically and hiding it with statistical summaries, here an "average" of some sort, lost the science. Moral: "Look at your data and think." (Ellis Ott) https://www.sciencenews.org/article/proxima-centauri-flare-may-h

[R] Σχετ: Σχετ: Problem with Rd2.tex tduring compilation

2018-03-05 Thread michael tsagris via R-help
Cheers. Στις 3:59 μ.μ. Δευτέρα, 5 Μαρτίου 2018, ο/η Michael Dewey έγραψε: https://stat.ethz.ch/mailman/listinfo/r-package-devel On 05/03/2018 13:46, michael tsagris wrote: > Hi and thanks for the prompt reply. I cannot say I understood or know > what to do. > Can you please tell me

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread Ding, Yuan Chun
Hi Bert, I am very sorry to bother you again. For the following question, as you suggested, I posted it in both Biostars website and stackexchange website, so far no reply. I really hope that you can do me a great favor to share your points about how to explain the coefficients for drug A and

[R] Help with apply and new column?

2018-03-05 Thread Sariya, Sanjeev
Hello members, Can I ask question for apply, adding new column to data frame on this e-mail list? Thanks! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman

Re: [R] Help with apply and new column?

2018-03-05 Thread Jeff Newmiller
Read the Posting Guide... (see message footer) ... some relevant things you can find there: a) Yes, this appears to be about how to use an R base function so it is on topic b) Post a reproducible example (include some sample data, preferably using the dput function) c) Post using plain text so t

Re: [R] Help with apply and new column?

2018-03-05 Thread Sariya, Sanjeev
Thanks. I think nabble is good for programming questions. Bear with me if I'm incorrect. Data: Genomics SNP information Goal: I need to add Chromosome and SNP position to the data frame I'm using through apply. I'd like to add new column from text processed through apply function. For example

Re: [R] Help with apply and new column?

2018-03-05 Thread Jeff Newmiller
Comments interspersed, and some code at the end. On Mon, 5 Mar 2018, Sariya, Sanjeev wrote: Thanks. I think nabble is good for programming questions. Bear with me if I'm incorrect. You may have found R-help archives at Nabble, but R-help has nothing to do with Nabble. Data: Genomics SNP

Re: [R] Help with apply and new column?

2018-03-05 Thread Sariya, Sanjeev
Thank you, that helps. -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Monday, March 5, 2018 3:36 PM To: Sariya, Sanjeev Cc: r-help@r-project.org; R Help Subject: RE: [R] Help with apply and new column? Comments interspersed, and some code at the end.

Re: [R] Random Seed Location

2018-03-05 Thread Paul Gilbert
On 03/04/2018 07:14 PM, Henrik Bengtsson wrote: On Sun, Mar 4, 2018 at 3:23 PM, Duncan Murdoch wrote: ... An issue is that .Random.seed doesn't contain the full state of the RNG system, so restoring it doesn't necessarily lead to an identical sequence of output. The only way to guarantee th

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread David Winsemius
> On Mar 5, 2018, at 8:52 AM, Ding, Yuan Chun wrote: > > Hi Bert, > > I am very sorry to bother you again. > > For the following question, as you suggested, I posted it in both Biostars > website and stackexchange website, so far no reply. > > I really hope that you can do me a great favor t

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread Bert Gunter
David: I believe your response on SO is incorrect. This is a standard OFAT (one factor at a time) design, so that assuming additivity (no interactions), the effects of drugA and drugB can be determined via the model you rejected: For example, if baseline control (no drugs) has a response of 0, dr

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread Ding, Yuan Chun
Hi Bert and David, Thank you so much for willingness to spend some time on my problem!!! I have some statistical knowledge (going to get a master in applied statisitics), but do not have a chance to purse a phD for statistics, so I am always be careful before starting to do analysis and hope t

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread Ding, Yuan Chun
I am sorry that I made a typo: . I asked my collaborator whey she omitted the fourth combination drugA only treatment, I wanted to say . "I asked my collaborator why she omitted the fourth combination drugB only treatment", Ding -Original Message- From: R-help [mailto:r-help-boun..

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread David Winsemius
> On Mar 5, 2018, at 2:27 PM, Bert Gunter wrote: > > David: > > I believe your response on SO is incorrect. This is a standard OFAT (one > factor at a time) design, so that assuming additivity (no interactions), the > effects of drugA and drugB can be determined via the model you rejected: >

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread Bert Gunter
But of course the whole point of additivity is to decompose the combined effect as the sum of individual effects. "Mislead" is a subjective judgment, so no comment. The explanation I provided is standard. I used it for decades when I taught in industry. Cheers, Bert Bert Gunter "The trouble w

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread Bert Gunter
Yuan: IMHO you need to stop making up your own statistical analyses and get local expert help. I have nothing further to say. Do what you will. 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

[R] raster time series statistics

2018-03-05 Thread Alexander.Herr
Hi List, The following code returns an "Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format" require(raster) require(rts) require(stringi) r <- raster(ncol=100, nrow=100) values(r) <- runif(ncell(r)) list(ID=seq(1:24),month=rep(str_pad(1:12, pad

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread David Winsemius
> On Mar 5, 2018, at 3:04 PM, Bert Gunter wrote: > > But of course the whole point of additivity is to decompose the combined > effect as the sum of individual effects. Agreed. Furthermore your encoding of the treatment assignments has the advantage that the default treatment contrast for A+B

Re: [R] raster time series statistics

2018-03-05 Thread David Winsemius
> On Mar 5, 2018, at 3:28 PM, > wrote: > > Hi List, > > The following code returns an "Error in as.POSIXlt.character(x, tz, ...) : > character string is not in a standard unambiguous format" I'm unable to produce that error. Which function was being evaluated to produce the error? I don'

Re: [R] raster time series statistics

2018-03-05 Thread Jim Lemon
Hi Herry, This is probably due to a call to strptime (or similar). No, it doesn't accept %Y-%m as a valid format. Maybe add a constant day to all the dates as that will work: dt<-list(ID=seq(1:24),month=rep(formatC(1:12,flag=0,width=2),2), year=sort(rep(2016:2017,12))) timelst<-paste(unlist(dt['y

Re: [R] raster time series statistics

2018-03-05 Thread Alexander.Herr
Thanks Jim Still getting the same error for apply.montly Updated code: require(raster) require(rts) require(stringr) r <- raster(ncol=100, nrow=100) values(r) <- runif(ncell(r)) stack(r)->s r->rs for(i in 1:23){ rs[]<-r[]*i addLayer(s,rs)->s print(nlayers(s)) } dt<-list(ID=seq(1:24),month=rep

Re: [R] raster time series statistics

2018-03-05 Thread Alexander.Herr
Last line in the following (updated) code produces the error require(raster) require(rts) require(stringr) r <- raster(ncol=100, nrow=100) values(r) <- runif(ncell(r)) stack(r)->s r->rs for(i in 1:23){ rs[]<-r[]*i addLayer(s,rs)->s print(nlayers(s)) } dt<-list(ID=seq(1:24),month=rep(formatC(1:1

Re: [R] raster time series statistics

2018-03-05 Thread Jim Lemon
I can't test that at the moment as I don't have the libraries. Perhaps later. Jim On Tue, Mar 6, 2018 at 11:36 AM, wrote: > Last line in the following (updated) code produces the error > require(raster) > require(rts) > require(stringr) > r <- raster(ncol=100, nrow=100) > values(r) <- runif(nce

Re: [R] data analysis for partial two-by-two factorial design

2018-03-05 Thread Ding, Yuan Chun
Thanks a lot, after reading this message, I think I got the advantage of Bert's coding. Those two drugs indeed do not interact with each other, so additive assumption is valid. I learned a lot today. Thanks again. Ding -Original Message- From: David Winsemius [mailto:dwinsem...@comcas

Re: [R] raster time series statistics

2018-03-05 Thread Alexander.Herr
It works if you use as.Date. But this defeates the purpose for the yearmon notion... require(raster) require(rts) require(stringr) r <- raster(ncol=100, nrow=100) values(r) <- runif(ncell(r)) stack(r)->s r->rs for(i in 1:23){ rs[]<-r[]*i addLayer(s,rs)->s print(nlayers(s)) } dt<-list(ID=seq(1