Description Usage Format Source Examples

Total numbers of salmon released (`salmon.released`

) and surviving
(`salmon.surviving`

) in 12 streams, 6 with brook trout `present`

and
6 with brook trout `absent`

. The proportion of salmon surviving
(`proportion.surviving`

) is given for each stream.

1 2 3 |

`BrookTrout`

is a data frame with 12 observations on the following
4 variables. `BrookTrout2`

is a different summary of the same
study and gives survival rates for chinook in different years.

`trout`

a factor with levels

`absent`

and`present`

indicating whether brook trout are absent or present in the stream`salmon.released`

a numeric vector of the total number of salmon released

`salmon.surviving`

a numeric vector of the number of salmon surviving

`proportion.surviving`

a numeric vector of the proportion of salmon surviving

Levin, P.S., S. Achord, B.E. Fiest, and R.W. Zabel. 2002. Non-indigenous brook trout and the demise of Pacific salmon: a forgotten threat? *Proceedings of the Royal Society of London, Series B, Biological Sciences* 269: 1663-1670.

1 2 3 4 5 6 7 8 9 10 11 12 | ```
data(BrookTrout)
data(BrookTrout2)
str(BrookTrout)
str(BrookTrout2)
bwplot(proportion.surviving ~ trout, BrookTrout)
aggregate( proportion.surviving ~ trout, BrookTrout, FUN = favstats)
if (require(Hmisc)) {
summary( proportion.surviving ~ trout, BrookTrout, fun = favstats)
}
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.