Learn R Programming

Biolinv (version 0.1-3)

jackKnife: Jackknifes a dataset.

Description

This function performes jackknife resampling on a dataset.

Usage

jackKnife(DF, N, PR = 0.85, DIR = F)

Arguments

DF

data frame, matrix or any R object wich responds to function rownames().

N

number of desired jackknifed datasets.

PR

proportion of entries to DF that will be kept in the jackknifed datasets. Default is 0.85.

DIR

directory whre to save the jackknifed datasets. If FALSE (default) will not save to disk.

Value

list of jacknifed datasets. If DIR is specified also a folder in directory DIR containing one .RDS file per jackknifed dataset (with extension .jds - Jackknifed Data Set) will be created.

Examples

Run this code
# NOT RUN {
data('frogs')
frogsJK<- jackKnife(DF= frogs, N= 10)
# }

Run the code above in your browser using DataLab