View source: R/load-prepare_tag_sheet.R
prepare_tag_sheet | R Documentation |
convert_otn_to_att
Loads the OTN tagging metadata sheet to prepare it for use in
convert_otn_to_att
prepare_tag_sheet(path, header_line = 5, sheet_name = 2)
path |
the path to the tagging sheet |
header_line |
what line the headers are on |
sheet_name |
the sheet name or number containing the metadata |
The function takes the path to the tagging sheet, what line to start
reading the headers from, and what sheet in the excel file to use. It converts column names
to be used by convert_otn_to_att
.
a data.frame created from the excel file.
Ryan Gosse
#--------------------------------------------------
# EXAMPLE #1 - loading from NSBS tagging
library(glatos)
tag_path <- system.file("extdata", "otn_nsbs_tag_metadata.xls",
package = "glatos"
)
tags <- prepare_tag_sheet(tag_path, 5, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.