create_metadataC: Create a complete metadata file from an excel or csv file...

View source: R/create_metadataC.R

create_metadataCR Documentation

Create a complete metadata file from an excel or csv file using prompts

Description

Generates a metadata file that matches the emLab SOP and asks you a series of questions to fill in (currently only works for .csv and .xlsx/.xls)

Usage

create_metadataC(
  file = NULL,
  path = ".",
  sheet_names = NULL,
  template_file = NULL,
  template_path = NULL
)

Arguments

file

string for the filename you'd like to read in (e.g. "this_datasheet.csv")

path

directory for where that files lives (and where the readme will be saved) (e.g. "Downloads/")

sheet_names

concatenated strings (e.g. c("Macroinverts", "FishLength")) for which sheets of an excel file you'd like to generate a metadata file for; all sheets specified will be kept in the same readme document; if using a csv file or only one sheet is present, set to NULL

template_file

string for the metadata file that you'd like to use as a template (keeps the project info from this file to write the new metadata file)

template_path

directory for where the template metadatafile lives


jcvdav/startR documentation built on May 2, 2024, 8:30 p.m.