[R] [r] Applying rollapply in VR test

2019-08-26 Thread Subhamitra Patra
Dear R users, I want to use rollapply function from the zoo package with the VR test by using the following code. library(vrtest) library(zoo) x <- Data y <- zoo(x) z <- rollapply(y,50, function(x) AutoBoot.test(x,nboot=30, wild="Normal")$AutoBoot.test) But, I am getting some error message, and

[R] Gtk3 into R

2019-08-26 Thread Cleber N.Borges
hello all, Is there currently any way to use Gtk3 to build GUI on R? Or some more up-to-date graphical toolkit than Gtk2 (via RGtk) or Tcl / Tk (via tcltk) ... best regards Cleber Borges [[alternative HTML version deleted]] __ R-help@r-proj

Re: [R] Data frame organization

2019-08-26 Thread Jim Lemon
Hi Arnaud, The reason I wrote the following function is that it always takes me half a dozen tries with "reshape" before I get the syntax right: amdf<-read.table(text="A 10 B 5 C 9 A 5 B 15 C 20") library(prettyR) stretch_df(amdf,"V1","V2") V1 V2_1 V2_2 1 A 105 2 B5 15 3

[R] Data Frame Organization

2019-08-26 Thread Sam Charya via R-help
There is some issue with the plain text vs. HTML - please find the answer again. If illegible kindly see the attached pic. Best Wishes. s. x <- c('A', 'B', 'C', 'A', 'B', 'C') y <- c(10, 5, 9, 5, 15, 20) df <- data.frame(x,y) df f <- reshape(df, v.names = "y", idvar = "x", timevar = "y", directi

Re: [R] TOC in vignette (knitr::rmarkdown)

2019-08-26 Thread Jeff Newmiller
The footer of every message on this list has a link to the Posting Guide, which discusses several mailing lists. Among the issues mentioned there that seem particularly relevant to your emails are: - R-help is for questions about R (which is a very general vehicle for implementing solution meth

Re: [R] Data frame organization

2019-08-26 Thread Sam Charya via R-help
Dear Arnaud, I just played around with your data a bit and found this to be useful. But kindly note that I am NO expert like the other people in the group. My answer to you is purely for help purposes. My knowledge in R too is limited. I used the reshape function and arrived at something. I am 

[R] Data frame organization

2019-08-26 Thread Arnaud Mosnier
Hi, I have a really simple question. I need to convert a data.frame with the following format A 10 B 5 C 9 A 5 B 15 C 20 in this format A 10 5 B 515 C 920 Thanks !!! [[alternative HTML version deleted]] __ R-help

[R] Graduated Symbol and Color Scale Coding Question

2019-08-26 Thread Josh B
I am mapping radio telemetry detections of shorebirds using ggmap. I want the map to depict a specific point (lat/lon) where the bird was detected. I want this depicted date of detection to be represented by a color scale. However, multiple birds are detected at the same telemetry tower (lat/lon) b

Re: [R] Code modification for post-hoc power

2019-08-26 Thread peter dalgaard
That doesn't work. In caricature, post-hoc power is - I observe a difference of nearly zero - However, to find a significant difference of that size I'd need 20 observations - I only used 100 observations - Therefore my study is useless and can be discarded (or: I calculate the probability

Re: [R] Code modification for post-hoc power

2019-08-26 Thread Michael Dewey
Dear Anne In addition to Marc's comments if you are forced to do this then, assuming your package computes sample size from power then just feed it a range of powers and find the one for which it calculates the sample size you had. There is a more elegant way to do this using uniroot but brut

Re: [R] TOC in vignette (knitr::rmarkdown)

2019-08-26 Thread Helmut Schütz
Hi Bert, Bert Gunter wrote on 2019-08-26 16:52: > Almost surely better posted on the r-package-devel mailing list. Do you have a macro for those ‘answers’ of yours? SCNR. *Which* kind of questions are -- in your opinion -- suitable to be posted *here*? Cheers, Helmut -- Ing. Helmut Schütz BEB

Re: [R] TOC in vignette (knitr::rmarkdown)

2019-08-26 Thread Helmut Schütz
Hi Yihui, THX; you made my day! Cheers, Helmut Yihui Xie wrote on 2019-08-26 16:59: output: rmarkdown::html_vignette: toc: true The syntax is the same for all R Markdown output formats: https://bookdown.org/yihui/rmarkdown/html-document.html#table-of-contents Regards, Yihui -- Ing.

Re: [R] TOC in vignette (knitr::rmarkdown)

2019-08-26 Thread Yihui Xie
output: rmarkdown::html_vignette: toc: true The syntax is the same for all R Markdown output formats: https://bookdown.org/yihui/rmarkdown/html-document.html#table-of-contents Regards, Yihui -- https://yihui.name On Mon, Aug 26, 2019 at 9:32 AM Helmut Schütz wrote: > > Dear all, > > I can

Re: [R] TOC in vignette (knitr::rmarkdown)

2019-08-26 Thread Bert Gunter
Almost surely better posted on the r-package-devel mailing list. Cheers, 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 Mon, Aug 26, 2019 at 7:32 AM Helmut Sc

[R] TOC in vignette (knitr::rmarkdown)

2019-08-26 Thread Helmut Schütz
Dear all, I can't figure out how to include a table of contents in a vignette. What I have now: --- title: "myPackage" subtitle: mySubtitle" author: "Me" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: >   %\VignetteIndexEntry{replicateBE}   %\VignetteEngine{knitr::rmarkdown}  

Re: [R] Code modification for post-hoc power

2019-08-26 Thread Marc Schwartz via R-help
> On Aug 26, 2019, at 6:24 AM, CHATTON Anne via R-help > wrote: > > Hello everybody, > > I am trying to accommodate the R codes provided by Donohue for sample size > calculation in the package "longpower" with lmmpower function to estimate the > post-hoc power (asked by a reviewer) of a bin

[R] Code modification for post-hoc power

2019-08-26 Thread CHATTON Anne via R-help
Hello everybody, I am trying to accommodate the R codes provided by Donohue for sample size calculation in the package "longpower" with lmmpower function to estimate the post-hoc power (asked by a reviewer) of a binary GEE model with a three-way interaction (time x condition x continuous predic