Extract metadata from the header of a datafile
1 2 | extract_metadata(header, start, pattern = "[-+]?\\d+\\.?\\d*e?-?\\d*",
numeric = TRUE)
|
header |
A vector of header lines in a datafile |
start |
A string with the beginning of the line of interest |
pattern |
Regular expression detailing how to extract the value. The default will attempt to match any number. |
numeric |
Should the function return a numeric (TRUE) or character (FALSE) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.