camrinbraun / tags2etuff

An R package for converting the hugely variable formats of animal tag data to a flat file format called eTUFF
Other
2 stars 2 forks source link

bug in series temperature #6

Closed camrinbraun closed 4 years ago

camrinbraun commented 4 years ago

most get_* functions currently rely on effective parsing of series data (i.e. using get_series). however, many tags in the current database do NOT have temperature in the series data. thus, when etuff is written, none of the data includes temperature and thus that var does not exist. get_series ends up pushing an error when trying to get temperature from an eTUFF file because it tries to index etuff$temperature. need to just use names(etuff) %in% c('DateTime','depth','temperature')