get_contents_cols: Function to return the unique contents of the column given...

View source: R/IPDFilecheck.R

get_contents_colsR Documentation

Function to return the unique contents of the column given the column name

Description

Function to return the unique contents of the column given the column name

Usage

get_contents_cols(data, colname)

Arguments

data

a data frame

colname

name of column corresponding to year of birth

Value

the contents of the column, if success error if failure

Examples

get_contents_cols(data.frame(
  "yob" =  c(1951, 1980),
  "Name" =  c("John", "Dora")
), "yob")

sheejamk/IPDFileCheck documentation built on March 10, 2024, 3:14 p.m.