prepare_shape_fields: prepare_shape_fields

View source: R/prepare_shape_fields.r

prepare_shape_fieldsR Documentation

prepare_shape_fields

Description

Shapefiles are limited in the naming conventions of the fields - they can only be 10 characters, and must be devoid of special characters that are allowed in R. This function attempts to ensure that the shortened names that result from calls to writeOGR() can still be understood and are not simply truncated.

Usage

prepare_shape_fields(shape)

Arguments

shape

a dataframe or spatial object whose fieldnames are to be processed

Value

a dataframe - spatial or otherwise

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other general_use: DDMMSS_to_DD(), DDMMx_to_DD(), aggregator(), clip_by_poly(), combine_lists(), df_qc_spatial(), df_sf_to_gpkg(), df_to_sf(), drop_cols(), subset_by_time(), updateCheck()


Maritimes/Mar.utils documentation built on Aug. 3, 2024, 9:10 p.m.