parse_contact_table: Read and parse the TOPMed website contact table

Description Usage Arguments Value Examples

View source: R/parse-contact-table.R

Description

Read the table from either a csv or html file and reformat it to a tall format, with one row per email.

Usage

1

Arguments

x

The path to a csv or html file containing the contact table.

Value

A formatted version of the contact table with columns:

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.

Examples

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)

}

UW-GAC/contactparser documentation built on Feb. 5, 2020, 4:59 a.m.