correctDBF: Correct .dbf of file

View source: R/correctDBF.R

correctDBFR Documentation

Correct .dbf of file

Description

This function enables the possibility to overwrite the header of an existing .dbf-file. Some applications, such as SAGA GIS, store shapefiles in formats that are not conform with the ESRI-shapefile format. By this function, "corrupt" headers can be replaced.

Usage

correctDBF(x, end.n = length(colnames(d$dbf)), adjust.n = 0,
  new.colnames)

Arguments

x

full path to .dbf-file, but without extension

end.n

start number of adjusting. Default: number of columns

adjust.n

number of columns that are renamed. Default: 0

new.colnames

vector with new names

Note

length of vector with new names must be identical to number of adjusted columns


ggRaver/Lslide documentation built on April 8, 2022, 7:14 a.m.