Description Usage Arguments Details Value Examples
clean function for data from NOAA
1 | eq_clean_data(data = NULL, r.na = TRUE)
|
data |
data frame from NOAA, Default: NULL |
r.na |
if TRUE, keeps all columns where MONTH AND DAY are NA. Otherwise, filter them, Default: TRUE |
This function is only useful for data from NOAA or another data with similar information.
a data frame with the following: A date column created by uniting the year, month, day and converting it to the Date class. LATITUDE and LONGITUDE columns converted to numeric class. Any other column in the original data frame, except MONTH, YEAR, DAY, HOUR, MINUTE and SECOND
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
if(interactive()){
clean_data_1 <- eq_clean_data(data = Earthquakes)
head(clean_data_1)
}
if(interactive()){
clean_data_2 <- eq_clean_data(data = Earthquakes,
r.na = FALSE)
head(clean_data_2)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.