Learn R Programming

CircMLE (version 0.3.0)

check_data: Data Checking Function

Description

Make sure data is in the right format. Datasets are coerced into class 'circular' of type = angles, units = radians, and modulo = 2pi. It is recommended to set these atributes ahead of time.

Usage

check_data(data)

Arguments

data

A vector, class 'circular' is recommended but not required

Examples

Run this code
# NOT RUN {
testdata = circular::rvonmises(100, mu = circular::circular(pi), kappa = 3,
   control.circular = list(units = "degrees"))
check_data(testdata)
# }

Run the code above in your browser using DataLab