cleanFeatureDF: Clean up feature data in preparation for saving

Description Usage Arguments Value

View source: R/util-export.R

Description

This function renames data columns for export via fixNames(), converts factors into characters, and checks for id and zip5 colums

Usage

1
cleanFeatureDF(features, checkId = TRUE, checkGeo = TRUE)

Arguments

features

The data frame of feature to be cleaned up

checkId

boolean indicating whether to enforce a check for an id column with an error message. This should be true when exporting features or other id matched data and false otherwise.

checkGeo

boolean indicating whether to enforce a check zip5 columns with a warning message. This should be true when exporting features that will be mapped.

Value

A copy of the original data frame that is cleaned up


ConvergenceDA/visdom documentation built on May 6, 2019, 12:51 p.m.