You need to learn regular expression patterns... there are lots of languages
that use them, and tutorial websites that teach them to you. They are not the
same as filename globbing patterns, and list.files uses regex because they are
much more flexible.
Here is an example:
list.files( pattern
Hi there,
I am finally getting to some material I had problems with in university,
where I was introduced to R - one of those that because of time
constraints, I had challenges figuring out, particularly because I decided
long ago on using Fedora Linux. The book, "Understanding Statistics Using
R"
Hi Nick,
If you can bear using R base graphics, the plotrix package has a
function named "getYmult" that allows you to adjust for the aspect
ratio of any plot area.
Jim
On Sun, Apr 3, 2022 at 11:14 PM Nick Wray wrote:
>
> Hello If you plot a square in the default R studio window you see a
> rec
Hello,
Can you post your computations? Assuming a two-sided test, mine are
x <- 6
n <- 26
p <- 0.1
cmb <- sapply(x:n, \(i) choose(n, i))
sum(cmb * p^(x:n) * (1 - p)^(n - (x:n)))
#[1] 0.03985931
binom.test(x=6, n=26, p=0.1)$p.value
#[1] 0.03985931
The result are equal to one another.
Às 19:
Hi,
for the specific example binom.test(x=6, n=26, p=0.1) I get as p-value
0.03986. The default approach to decide whether I can reject the null or
or not is to compare the p-value with the given significance level.
Using a significance level of 0.05 this will lead to reject the null
hypothes
... and following up on Rui's reply, assuming that the default (in R,
not RStudio) "m" is being used, I would assume that the aspect ratio
in the RStudio device depends on the layout of your windows. Also, you
might do better asking here, https://community.rstudio.com/ , than on
this list.
Bert Gu
Hello,
There's a graphics parameter for aspect ratio that you can set asp=1 on
a plot by plot basis. But you also need to change pty. From ?par:
pty
A character specifying the type of plot region to be used; "s" generates
a square plotting region and "m" generates the maximal plotting region.
Thank you, Bert!
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained
8 matches
Mail list logo