Re: [R] confidence intervals

2022-09-26 Thread Bogdan Tanasa
HI everyone, THe conversation below is already old :) Just wanted to add that I received the explanations regarding the confidence intervals that are computed in the article(s) that we have briefly discussed. The answers have been posted on stackoverflow, com : https://stats.stackexchange.com/ques

Re: [R] apply to row and column of matrix

2022-09-26 Thread Eric Berger
Bert provided an excellent answer to your question. FYI here is a different approach to do the calculation. It uses data.frame rather than matrix. A data frame is a list of its columns. Here the function supplied to sapply operates on each column of the data.frame. > m <- as.data.frame(t(matrix(1:

Re: [R] apply to row and column of matrix

2022-09-26 Thread Bert Gunter
from ?apply: "If each call to FUN returns a vector of length n, and simplify is TRUE, then apply returns an array of dimension c(n, dim(X)[MARGIN]) ." For margin = 1 (cumsum over rows), each call to cumsum return a vector of length 2. Hence the array returned will be of dimension c(2, c(5,2)[1]) =

[R] apply to row and column of matrix

2022-09-26 Thread Jinsong Zhao
Hi there, I try to calculate the cumsum of row and column of a matrix as follows. > m <- matrix(1:10, ncol = 2) > m [,1] [,2] [1,]    1    6 [2,]    2    7 [3,]    3    8 [4,]    4    9 [5,]    5   10 > apply(m, 1, cumsum) [,1] [,2] [,3] [,4] [,5] [1,]    1    2    3    4    5 [2,]   

Re: [R] Ecological Detective worked solutions [R-wiki]

2022-09-26 Thread Ivan Krylov
В Sun, 25 Sep 2022 16:30:06 -0500 Jada Daniels пишет: > I was recently referred to this webpage pertaining The Ecological > Detective > (http://wiki.r-project.org/rwiki/doku.php?id=guides:tutorials:ecological_detective), > however, it will not pull up on my laptop. Parts of the R wiki (I didn't

Re: [R] Ecological Detective worked solutions [R-wiki]

2022-09-26 Thread Ebert,Timothy Aaron
Hi Jada, Just so you know: I tried the link, but my system responded that it would not find that page. I got a note in the email that the HTML version was deleted. (That is expected given guidelines for posting) Tim -Original Message- From: R-help On Behalf Of Jada Daniels Sent: Sunday,

[R] Ecological Detective worked solutions [R-wiki]

2022-09-26 Thread Jada Daniels
Hi! I was recently referred to this webpage pertaining The Ecological Detective( http://wiki.r-project.org/rwiki/doku.php?id=guides:tutorials:ecological_detective) , however, it will not pull up on my laptop. I was hoping to use the code from chapter 6 to model a project after. Is there another lin