The R Project SVN R

Rev

Rev 26742 | Rev 35015 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26742 Rev 27712
Line 49... Line 49...
49
# compute the list mean for each list element
49
# compute the list mean for each list element
50
lapply(x,mean)
50
lapply(x,mean)
51
# median and quartiles for each list element
51
# median and quartiles for each list element
52
lapply(x, quantile, probs = 1:3/4)
52
lapply(x, quantile, probs = 1:3/4)
53
sapply(x, quantile)
53
sapply(x, quantile)
54
str(i39 <- sapply(3:9, seq))# list of vectors
54
i39 <- sapply(3:9, seq) # list of vectors
55
sapply(i39, fivenum)
55
sapply(i39, fivenum)
56
 
56
 
57
hist(replicate(100, mean(rexp(10))))
57
hist(replicate(100, mean(rexp(10))))
58
}
58
}
59
\keyword{iteration}
59
\keyword{iteration}