dpseidel / stmove

Build reproducible reports for spatial-temporal animal movement analysis
https://www.danaseidel.com/stmove/
GNU General Public License v3.0
3 stars 0 forks source link

interval stats should accept multiple options #11

Open dpseidel opened 5 years ago

dpseidel commented 5 years ago

stmove::interval_stats(AG195, type = c("diurnal", "lunar", "seasonal"), seas = c(40, 120, 210))

currently gives the results for diurnal and this warning:

Warning messages:
1: In if (type == "diurnal") { :
  the condition has length > 1 and only the first element will be used

2: In if (type == "lunar") { :
  the condition has length > 1 and only the first element will be used

3: In if (type == "seasonal") { :
  the condition has length > 1 and only the first element will be used

should be fixed to return a list

dpseidel commented 5 years ago

This actually will require some significant refactoring of this function.