This pull request includes several updates to the camtraptor package, primarily focusing on adding new columns to the get_record_table() output (see #341), updating the package version, and adding new tests to ensure the correctness of the new functionality.
Updates to get_record_table() function:
get_record_table() now returns four new columns: longitude, latitude, clock (clock time in radians), and solar (solar time in radians).
Package version and dependency updates:
Updated the package version from 0.26.0 to 0.27.0 in the DESCRIPTION file.
Added activity (for getTime() used for clock column) and overlap (for sunTime() used for solar column) to the Imports section in the DESCRIPTION file.
New helper function:
Introduced a new helper function add_coordinates() to add deployment coordinates to observations based on deploymentID.
New tests:
Added tests to ensure warnings are returned if some observations have no timestamp, and to check that clock and solar values are always within the range [0, 2*pi].
This pull request includes several updates to the
camtraptor
package, primarily focusing on adding new columns to theget_record_table()
output (see #341), updating the package version, and adding new tests to ensure the correctness of the new functionality.Updates to
get_record_table()
function:get_record_table()
now returns four new columns:longitude
,latitude
,clock
(clock time in radians), andsolar
(solar time in radians).Package version and dependency updates:
DESCRIPTION
file.activity
(forgetTime()
used forclock
column) andoverlap
(forsunTime()
used forsolar
column) to theImports
section in theDESCRIPTION
file.New helper function:
add_coordinates()
to add deployment coordinates to observations based ondeploymentID
.New tests:
clock
andsolar
values are always within the range [0, 2*pi].