checkN1D: Helper function for helpN

Description Usage Arguments Value

View source: R/utilities-input-validation.R

Description

Checks that n is always a positive whole number; n may be NA or NULL only if emptyOkay=TRUE.

Usage

1
checkN1D(n, emptyOkay = FALSE)

Arguments

n

the input n (often number of data points in data set) from the user

emptyOkay

A boolean. True if NA or NULL values are allowed, FALSE otherwise.

Value

n, if n is a series of positive integers with expected length and only containing NAs or NULL values if allowed.


IQSS/PSI-Library documentation built on Feb. 15, 2020, 9:03 p.m.