attribute_skeleton: create a skeleton file (or safely append to existing) for...

View source: R/attribute_skeleton.R

attribute_skeletonR Documentation

create a skeleton file (or safely append to existing) for attributes

Description

create skeleton from object

Usage

attribute_skeleton(object, attr.file, ...)

Arguments

object

a regognized R object or vector of file paths that can be read in to a recognized object class

attr.file

a file to write the attribute skeleton to

...

additional parameters passed to methods

Details

if the attribute file (attr.file) doesn't exist, a skeleton formatted file is created. If the file does exist, it is opened and any new fields are joined in. Existing content in attr.file is not overwritten.

Examples

## Not run: 
attr.file <- tempfile(fileext = '.csv')
attribute_skeleton(system.file(package='meddle','extdata','example_shapefile'), attr.file)
read_attr_file(attr.file)

## End(Not run)

USGS-R/meddle documentation built on April 29, 2023, 11:50 a.m.