Learn R Programming

stlcsb (version 0.1.2)

csb_missingXY: Identifying Calls Missing Coordinate Data

Description

csb_missingXY returns a logical vector indicating if an observation is missing in either of the coordinate columns that come with the CSB data.

Usage

csb_missingXY(.data, varX, varY, newVar)

Arguments

.data

A tibble or data frame

varX

Name of column containing x coordinate data

varY

Name of column containing y coordinate data

newVar

Name of new column that is TRUE if coordinate data are missing and FALSE otherwise.

Value

A tbl with a logical vector appended to it.

Examples

Run this code
# NOT RUN {
csb_missingXY(january_2018, srx, sry, newVar = "missingXY")

# }

Run the code above in your browser using DataLab