Description Usage Arguments Value Examples
This function a specified column from the data frame and replaces cells that have the value 0 with NA
1 | cs_replace0(.data, var)
|
.data |
A tibble or data frame |
var |
Name of column containing coordinate data |
A tibble or data frame with the coordinate column updated.
1 2 3 4 5 6 | # load example data
testData <- january2018
# replace 0s in the x and y coordinate variables
testData <- cs_replace0(testData, var = x_coord)
testData <- cs_replace0(testData, var = y_coord)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.