count_column_range: Title check the column values are in the given range

Description Usage Arguments Value Examples

Description

Title check the column values are in the given range

Usage

1
count_column_range(data, colName, loVal, hiVal)

Arguments

data

dataframe

colName

column name to check in the range

loVal

lower value of the range

hiVal

higher value of the range

Value

total rows that are in range

Examples

1
2
3
4
5
nobleGasses <- data.frame(Gas=c("Helium","Neon", "Argon", "Krypton", "Xenon", "Radon", "Oganesson"),
Symbol=c("He","Ne","Ae","Kr","Xe","Rn","Og"), Nr=c(2,10,18,36,54,86,118),
Mass=c(4.003,20.18,39.948,83.8,131.293,222,294))
check_column_range(nobleGasses, "Mass",4,50)   # reutrns 3
check_column_range(nobleGasses, "Mass",30,50)   # reutrns 1

pkchouhan14/customerChurnUU documentation built on May 28, 2019, 5:55 p.m.