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

README example doesn't run #31

Closed
edzer opened this issue Sep 23, 2020 · 2 comments
Closed

README example doesn't run #31

edzer opened this issue Sep 23, 2020 · 2 comments

Comments

@edzer
Copy link

edzer commented Sep 23, 2020

I tried the README example with both github master and dev versions, but get:

> my_sftrack <- as_sftrack(
+   data = raccoon,
+   coords = c("longitude","latitude"),
+   time = "timestamp",
+   burst = "animal_id",
+   crs = "+init=epsg:4326")
Error in check_names_exist(data, group) : id not found in data frame
@basille
Copy link
Member

basille commented Sep 23, 2020

Ha, my bad! burst has been changed to group to more clearly reflect what it actually is… and I forgot to update the documentation. The example works fine with:

my_sftrack <- as_sftrack(
  data = raccoon,
  coords = c("longitude","latitude"),
  time = "timestamp",
  group = "animal_id",
  crs = "+init=epsg:4326")
head(my_sftrack)

Thanks for reporting it!

@basille
Copy link
Member

basille commented Sep 23, 2020

Closing this issue now, I just updated the docs online. That was somewhat of a rough start. :)
Please refresh your cache if necessary.

@basille basille closed this as completed Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants