getBoot: getBoot function

Description Usage Arguments Value Examples

Description

This is a small function that bootstraps mean and sd from a given vector. It requires the "boot" package to operate.

Usage

1
getBoot(x, type = "mean", R = 1000)

Arguments

x

A vector of values to resample.

type

Default is "mean", set to "sd" to calculate standard deviation.

R

The number of times to resample x.

Value

This function returns the mean or sd without any of the other characteristics returned by the boot() function.

Examples

1
getBoot(c(1:100), "mean", 1000)

ecology-rocks/MakeMyForests documentation built on May 15, 2019, 7:57 p.m.