vpart: Data partitioning utility

Description Usage Arguments Value

View source: R/TMS_Classifier.R

Description

Extract a random partition from an input dataset.

Usage

1
vpart(data, p, status = NULL, shuffle = FALSE)

Arguments

data

An input data.frame.

p

Proportion of input rows to be extracted from the input dataset.

status

Numeric value indicating the column for subject diagnosis (default status = NULL). Allowed values for this column are "HC", "FTD", "AD", and "DLB". If status is not NULL, random partitioning will preserve the status column proportions.

shuffle

A logical value. If TRUE, the input rows are randomly shuffled before data partitioning.

Value

A list of 2 data.frames:

  1. "training.set", the portion of the input data defined by p;

  2. "validation.set", the portion of the input data defined by 1-p.


fernandoPalluzzi/tmsClassifier documentation built on Feb. 3, 2021, 12:31 p.m.