IPDFileCheck (version 0.5.0)

getConentdInCols: 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

getConentdInCols(data, colname)

Arguments

data

a data frame

colname

name of column corresponding to year of birth

Value

the contents of the column, if success -1 if failure

Examples

Run this code
# NOT RUN {
getConentdInCols(data.frame("yob" = c(1951,1980), "Name" = c("John","Dora")),"yob")
# }

Run the code above in your browser using DataLab