-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix output issues #32
Conversation
@@ -21,12 +21,13 @@ plot_speed <- function(dat, dat_outp, yul, track_id, threshold) { | |||
abline(h = ifelse(is.null(threshold), mean(dat$speed, na.rm = T), threshold), lty = 3, lwd = 2, col = "coral") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly linting changes
@@ -164,7 +168,11 @@ rFunction <- function(data, threshold = NULL, window = 72, events_file = NULL, y | |||
) | |||
|
|||
if (is.null(data_temp)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Real change
@@ -288,14 +303,14 @@ rFunction <- function(data, threshold = NULL, window = 72, events_file = NULL, y | |||
dat_final <- left_join( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Real change
The changes look good to me...merging the branch with the main one |
Ok thanks for the explanation. Getting a result for each individual has been a core requirement, so it's important that the user gets some clear signal if some tracks fail. I think this is good for now. I can add some explanation in the readme.
I'm not sure, we can see how it looks after the update! For now the redundancy is ok. @annescharf refers us to the move2 app documentation: More generally, Anne points out that the app converts the move2 object to a new df and then hard-codes the attributes for timestamps, IDs and coordinates rather than using the move2 retrieval functions described in the manual. With the current code, the app will work for data coming from the Movebank Location App, but is likely to break in any other case, even if someone uploads a CSV of data downloaded from Movebank. For example in RFunction.R, line 116, a file from Movebank will have column name @annescharf , now that I look at it again, I have another question relating to this issue: The cargo agent does seem to get the |
@sarahcd, I just had a look at code of the cargo agent and realized that it will also only work with data directly downloaded from movebank. It searches for the |
This PR fixes:
trackID
back in as a column header, keep in mind this will be a duplicate with whatever the actual name is fortrackID
, in the case of hart river,individual_local_identifier_year
. @sarahcd please let me know if this is the desired behavior.@nilanjanchatterjee most of the changes are actually just linting, I commented where there are real changes