Learn R Programming

Distance (version 1.0.9)

checkdata: Check that the data supplied to ds is correct

Description

This is an internal function that checks the data.frames supplied to ds are "correct".

Usage

checkdata(
  data,
  region.table = NULL,
  sample.table = NULL,
  obs.table = NULL,
  formula = ~1
)

Value

Throws an error if something goes wrong, otherwise returns a data.frame.

Arguments

data

as in ds

region.table

as in ds

sample.table

as in ds

obs.table

as in ds

formula

formula for the covariates

Author

David L. Miller