kaijagahm / vultureUtils

Utility functions for working with vulture data
Other
4 stars 0 forks source link

Overhaul the wrapper functions #18

Closed kaijagahm closed 1 year ago

kaijagahm commented 1 year ago

This PR splits the data masking process out into a new wrapper function, cleanedData(), and adds much more flexibility so the data cleaning need not always look the same.

Also completely overhauls the two existing wrapper functions getFeedingEdges() and getFlightEdges(), sets reasonable defaults, adds some more flexibility to them, and removes all data cleaning from these wrappers (because it's now separated out into cleanData()). Also introduces a new wrapper function getEdges() for more general edgelist creation, where you can (must!) specify almost all of your own parameters.

Removes getRoostingEdges() because that function was far from being finished anyway and was just messing up the checks.

Incorporated roost polygon buffering directly into the get*Edges() family of wrapper functions.

Incorporated a few more reasonable data cleaning steps into downloadVultures() that had previously been separated--coercing to a data frame, adding a dateOnly column, etc.

Added options for warnings/messages to be quieted in most of the functions.

This PR closes #17, #16, #11, #10, and #4.