Skip to content
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

fit_ssm does not produce a foieGras object. #1

Closed
ryanreisinger opened this issue Feb 4, 2019 · 2 comments
Closed

fit_ssm does not produce a foieGras object. #1

ryanreisinger opened this issue Feb 4, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ryanreisinger
Copy link

The object returned by fit_ssm is not a foieGras object, so the print and plot methods can't be called on it.

@ryanreisinger ryanreisinger changed the title fit_ssm does not produce a foieGras object. fit_ssm does not produce a foieGras object. Feb 4, 2019
@ianjonsen ianjonsen added the bug Something isn't working label Feb 4, 2019
@ianjonsen ianjonsen self-assigned this Feb 4, 2019
@ianjonsen
Copy link
Owner

Thanks, Ryan.

fit_ssm produces a compound tibble as output, even when fitting to a single track. The foieGras class is appended to each ssm fit object, rather than the whole tibble. So to use the print and plot methods, you need to call the individual fit objects:

fit <- fit_ssm(data, time.step = 6)

fit$ssm[[1]] - for summary print

plot(fit$ssm[[1]]) - and so on for fits to multiple individuals...

Help file has been updated to more clearly demonstrate this.

cheers, ian

@ryanreisinger
Copy link
Author

Ah, right! Thanks, Ian.

R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants