# NOT RUN {
library(tfer)
## create a transfer object using default arguments
y = transfer()
## probability table
probs = tprob(y)
## extract the probabilities of recovering 8 to 15
## glass fragments given the user-specified arguments
tprob(y, 8:15)
## produce a summary table for a transfer object
summary(y)
## barplot of probabilities (default)
plot(y)
plot(y)
## barplot of transfer frequencies
plot(y, ptype = "f")
## histogram
plot(y, ptype = "h")
# }
Run the code above in your browser using DataLab