Re: [R] If Loop I Think

2019-10-27 Thread William Michels via R-help
Hi Phillip, I wanted to follow up with you regarding your earlier post. Below is a different way to work up your data than I posted earlier. I took the baseball data you posted, stripped out leading-and-following blank lines, removed all trailing spaces on each line, and removed the "R1", "R2" an

Re: [R] Assistant

2019-10-27 Thread David Winsemius
I thought this text was pretty useful: https://www.amazon.com/Introduction-Scientific-Programming-Simulation-Chapman/dp/1420068725 -- David On 10/25/19 2:30 AM, basiru shehu wrote: I am Basiru Shehu by name, wishing to conduct my research base on the multivariate Behrems Fisher problems, ple

Re: [R] Conversion from python to R - log-problem

2019-10-27 Thread Duncan Murdoch
On 27/10/2019 7:01 p.m., Martin Møller Skarbiniks Pedersen wrote: Hi, I am trying to convert a small python computation to R but my R version gets the wrong result. You are using log10() in R, when you should be using log(). The python code: import math import log x = log(2) for i in rang

[R] Conversion from python to R - log-problem

2019-10-27 Thread Martin Møller Skarbiniks Pedersen
Hi, I am trying to convert a small python computation to R but my R version gets the wrong result. The python code: import math import log x = log(2) for i in range(3,7): x = log(i)**x print(x) 3.14157738716919 My R-version: x <- log10(2) for (i in 3:6) { x <- log10(i)**x } print(x) [1]

[R] ggpubr: order of non-numeric x-axis items

2019-10-27 Thread Bendix Carstensen
In the Epi package is a function, Relevel (note the capital R), that does general reordering and combination of factor levels. Bendix Carstensen maintainer of Epi __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/

Re: [R] how to calculate multiple meta p values

2019-10-27 Thread Michael Dewey
Dear Ana There must be several ways of doing this but see below for an idea with comments in-line. On 26/10/2019 00:31, Ana Marija wrote: Hello, I would like to use this package metap to calculate multiple o values I have my data frame with 3 p values head(tt) RSG