min(x)
max(x)
median(x)
quantile(x)
summary(x)
mean(x)
var(x)
sd(x)
quantile(x, probs=c(0,0.1,0.9), na.rm=T)
range(x, na.rm=T)
IQR(x)
pmax(x,y,z), pmin(x,y,z) # returns minimum for each i
mean(x, trim=0.2, na.rm=T) # trim 20% from each end
# "hills" is a data.frame
summary(trees)pairs(trees)
options(digits=3)cor(trees)cor(log(trees))
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment