Hi Jean,
Thank you so much!
Steve
On Sat, Sep 19, 2015 at 1:02 PM, Adams, Jean wrote:
> Here's one way to save your results, using a list of lists and a for()
> loop.
>
> nsim <- 100
> outputs <- vector("list", nsim)
> for(i in 1:nsim) {
> outputs[[i]] <- sim.f(p.s=.05, N=1000, sample.size=6
Here's one way to save your results, using a list of lists and a for() loop.
nsim <- 100
outputs <- vector("list", nsim)
for(i in 1:nsim) {
outputs[[i]] <- sim.f(p.s=.05, N=1000, sample.size=69, n.sim=500)
}
Jean
On Fri, Sep 18, 2015 at 2:27 PM, SH wrote:
> Dear R users,
>
> I am trying to s
Hello,
You should say what is the package you are using, EstimateS returns
hundreds of hits. [ package sos, findFn() ].
As for the question, try
sp <- 1:5
ab <- c(3, 2, 2, 2, 4)
rep(sp, ab)
Hope this helps,
Rui Barradas
Em 10-07-2012 18:23, peziza escreveu:
I am trying to input an OTU t
The apply function which can work on either a row-wise of column-wise
basis can be used with max and ">" can return a logical vector that
will let you separate the rows into those with and without a maximum
greater than 60.
> datax <- matrix(rnorm(300)*30,nrow=50)
> datax <- as.data.frame(
Dear John,
It looks like you are stuck in both the second and the third circle of
the R inferno (http://www.burns-stat.com/pages/Tutor/R_inferno.pdf)
You problem is easy to vectorise.
#could the number of columns >= 64 in each row
NumCols <- rowSums(datax >= 64)
#select rows with at least one co
5 matches
Mail list logo