returnSubgroupOmitNA

Function to return a subgroup when certain variable equals the given value while omitting those with NA

Function to return a subgroup when certain variable equals the given value while omitting those with NA

Usage
returnSubgroupOmitNA(data, variable, value)
Arguments
data

data frame

variable

that corresponds to a column

value

a value that can be taken by the variable

Value

subgroup a data frame if success -1 if failure

Aliases
  • returnSubgroupOmitNA
Examples
# NOT RUN {
returnSubgroupOmitNA(data.frame("age" = c(21,15), "Name" = c("John","Dora")),"age",10)
# }
Documentation reproduced from package IPDFileCheck, version 0.3.0, License: CC0

Community examples

Looks like there are no examples yet.