skeleton: Generic function to build a skeleton for codebook input from...

Description Usage Arguments Value Author(s)

View source: R/skeleton.R

Description

To make metadata input more efficient, this function builds out a custom csv file that can be edited in an outside text editor and read back into R and then used to construct a metadata object.

Usage

1
2
3
4
5
skeleton(data, file = NULL, replace = FALSE, fileEncoding = "latin1", ...)

## S3 method for class 'data.frame'
skeleton(data, file = NULL, replace = FALSE,
  fileEncoding = "latin1", ...)

Arguments

data

a data object to construct a codebook skeleton for

file

a character string indicating where the file should be saved, if NULL codebook object is printed to the console

replace

logical, should an existing codebook skeleton file be overwritten, default is FALSE

fileEncoding

file encoding to be passed to write.csv, default is "latin1"

...

additional arguments to pass to write.csv

Value

A CSV file

Author(s)

Jared Knowles


jknowles/metaframe documentation built on May 19, 2019, 11:43 a.m.