Description Usage Arguments Value Examples
View source: R/eq_clean_data.R
You can use this function in two ways. Assigning the file_name (e.g. ../path/my_file.txt) with path or piping it as sequence of a read_delim.
1 | eq_clean_data(file_name = rlang::.data)
|
file_name |
You can insert the file_name and path to reach the tsv file or pipe it with a read_delim. |
A DataFrame version of file_name. Have in mind, I have only cleaning few columns: EQ_PRIMARY, LOCATION_NAME, DATE, and TOTAL_DEATHS.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Loading using a third party function and then cleaning teh DataFrame.
readr::read_delim("inst/extdata/signif.txt",
delim = "\t") %>%
eq_clean_data()
# Piping a DataFrame.
any_dataframe %>% eq_clean_data()
# Assigning a file_name
eq_clean_data(file_name = "my_folder/signif.txt")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.