powered by
cs_missingXY compares X and Y coordinates and adds a logical column that identifies observations that are missing coordinate data.
cs_missingXY
cs_missingXY(.data, varX, varY, newVar)
A tibble or data frame
Name of column containing x coordinate data
Name of column containing y coordinate data
Name of new column that is TRUE if coordinate data are missing and FALSE otherwise.
TRUE
FALSE
A tibble or data frame with a logical vector appended to it.
# NOT RUN { # load example data testData <- january2018 # identify missing x and y coordinates testData <- cs_missingXY(testData, varX = x_coord, varY = y_coord, newVar = missingXY) # }
Run the code above in your browser using DataLab