validate_df {collinear}R Documentation

Validate input data frame

Description

Internal function to validate and prepare the input data frame for a multicollinearity analysis.

Validates a data frame to ensure it complies with the requirements of the package functions. The function performs the following actions:

Usage

validate_df(df = NULL, min_rows = 30)

Arguments

df

(required; data frame or matrix) Input data frame. Default: NULL

min_rows

(required; integer) Minimum number of rows required for a pairwise correlation or a variance inflation factor analysis. Default: 30

Value

The input data frame modified to comply with the requirements of the functions in this package

Author(s)

Blas M. Benito

Examples


data(vi)

#validating example data frame
vi <- validate_df(
  df = vi
)

#tagged as validated
attributes(vi)$validated


[Package collinear version 1.1.1 Index]