Description Usage Arguments Details Value Note Examples
The 'eq_location_clean(data, countryCol)' function will change the given column into title case.
1 | eq_location_clean(data, colName)
|
data |
- A delimited file that is read in by the 'read_delim' function |
colName |
- The 'colName' parameter is a character and represents the column with the country names |
The column with the country names of the given data file will be changed into title case.
A data frame in the global environment
error - An error is given when colName is not given.
error - An error is given when colName is not a character
1 2 3 4 5 6 | ## Not run:
file = "data/earthquakes.tsv.gz"
file <- read_delim(file, delim = "\t")
eq_location_clean(file, COUNTRY)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.