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

Description Usage Arguments Details Examples

View source: R/attribute_skeleton.R

Description

create skeleton from object

Usage

1
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

1
2
3
4
5
6
## 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 Nov. 21, 2020, 7:44 p.m.