# Example data
df <- data.frame(
station_name = c("A", "B", "C"),
sample_longitude_dd = c(15.2, 0, 18.7),
sample_latitude_dd = c(56.3, 58.1, 0)
)
# Check for zeroes in both coordinates and return as data.frame
check_zero_positions(df, coord = "both", return_df = TRUE)
# Return a logical vector instead of a table
check_zero_positions(df, coord = "both", return_logical = TRUE)
Run the code above in your browser using DataLab