View source: R/checkGATvariabletypes.R
checkGATvariabletypes | R Documentation |
This function is used to create a list of either numeric or character variables in the data frame.
checkGATvariabletypes(mapdata, type = "number")
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. |
# identify numeric variables
my_numericvars <-
checkGATvariabletypes(
mapdata = hftown,
type = "number"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.