Learn R Programming

beezdemand (version 0.2.0)

CheckCols: Check Column Names

Description

Checks to ensure column names are specified

Usage

CheckCols(dat, xcol, ycol, idcol, groupcol = NULL)

Value

Dataframe

Arguments

dat

Dataframe

xcol

Name of x column

ycol

Name of y column

idcol

Name of id column

groupcol

Name of group column

Author

Brent Kaplan bkaplan.ku@gmail.com

Details

Check column names

Examples

Run this code
dat <- data.frame(price = 1:5, quantity = c(10, 8, 5, 2, 0), subj = rep(1, 5))
CheckCols(dat, xcol = "price", ycol = "quantity", idcol = "subj")

Run the code above in your browser using DataLab