ch.removeBadSNs: A function to remove bad subjects' data from a dataframe

ch.removeBadSNsR Documentation

A function to remove bad subjects' data from a dataframe

Description

This function removes bad subjects' data from a dataframe. A filename containing the bad subject IDs are passed to the function. This file should just be a vector (vertical in file) of IDs

Usage

ch.removeBadSNs(data, snCol, badSNfilename)

Arguments

data

a dataframe.

snCol

a string that specifies the name of the column in "data" that contains the subject number.

badSNfilename

the filename containing the IDs of the bad SNs.

Value

a dataframe without the bad subjects' data.

Examples

ch.removeBadSNs (data, "sn", "badSN.txt")

ccpluncw/ccpl_R_chutils documentation built on Nov. 22, 2024, 5:18 a.m.