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

Updated "generalize" methods #7

Merged
merged 5 commits into from Oct 29, 2013
Merged

Updated "generalize" methods #7

merged 5 commits into from Oct 29, 2013

Conversation

ghost
Copy link

@ghost ghost commented Oct 28, 2013

See the comments for what has been changed.

Try:

library(spacetime)
example(Track)
g1 = generalize(B, max, timeInterval = "2 min")
g2 = generalize(A2, distance = 200)
g3 = generalize(Tr, min, n = 2)
g4 = generalize(A, timeInterval = "3 min", tol = 2)
g5 = generalize(A1, n = 3, toPoints = TRUE)

@edzer edzer merged commit afe4626 into edzer:master Oct 29, 2013
@nuest
Copy link

nuest commented Oct 29, 2013

@k2sk8s Just wondering: how do you parse the time interval string?

@ghost
Copy link
Author

ghost commented Oct 29, 2013

@edzer
Copy link
Owner

edzer commented Oct 29, 2013

with a format string: as an example from ?strptime:

strptime("20/2/06 11:16:16.683", "%d/%m/%y %H:%M:%OS")

but this is an issue (still) outside spacetime.

@nuest
Copy link

nuest commented Oct 29, 2013

@k2sk8s Thanks!

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

Successfully merging this pull request may close these issues.

2 participants