alter_col: Function that uniformly applies a change to a column....

Description Usage Arguments Value

View source: R/import-data.R

Description

Function that uniformly applies a change to a column. Intended to do things like converting character columns to numeric ones.

Usage

1
alter_col(d, col_name, alterFunc)

Arguments

d

Input data frame needing column alteration.

col_name

The name of the column to alter.

alterFunc

Takes a single vector, returns a single vector that is an altered copy.

Value

A copy of the input data frame d with the given column altered.


interzoneboy/MS-prep documentation built on June 13, 2020, 7:03 a.m.