Description Usage Arguments Value Examples
View source: R/parse-contact-table.R
Read the table from either a csv or html file and reformat it to a tall format, with one row per email.
1 |
x |
The path to a csv or html file containing the contact table. |
A formatted version of the contact table with columns:
instutition_type
: String indicating if this record is for a parent study, project, or center
study_short_name
: Study short name
project
: Associated TOPMed project
contact_type
: pi, co_pi, contact, dataset_contact, or phenotype_liaison
email
: email address for this contact
If there are multiple contact types for the same study/project, they will appear in separate records. Similarly, if the same email has multiple contact_types for the same study/project or is associated with different studies or projects, that email will appear multiple times.
1 2 3 4 5 6 7 8 9 | {
html_file <- system.file(package = "contactparser", "testdata", "example.html")
parse_contact_table(html_file)
csv_file <- system.file(package = "contactparser", "testdata", "example.csv")
parse_contact_table(html_file)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.