This function is used to create a list of either numeric or character variables in the data frame.

checkGATvariabletypes(mapdata, type = "number")

Arguments

mapdata

A data frame, intended to be read from a shapefile DBF.

type

Variable type. Options include "number", which returns a vector of names for all numeric variables, and "character", which returns a vector of names for all character variables.

Examples

# identify numeric variables
my_numericvars <-
  checkGATvariabletypes(
    mapdata = hftown,
    type = "number"
  )