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

dtwclust - examples cannot be reproduced #14

Closed
golnazshah opened this issue May 31, 2017 · 1 comment
Closed

dtwclust - examples cannot be reproduced #14

golnazshah opened this issue May 31, 2017 · 1 comment

Comments

@golnazshah
Copy link

Hello,

I have started using dtwclust package. However, there are several examples that cannot be run. So far I have encountered the following problems:

  1. create_dtwclust: the function cannot be found.
  2. page 27: reinterpolate(CharTraj, new.length = max(lengths(CharTraj))), new.length should newLength and R does not recognize lengths. After making some changes, I get:

series <- reinterpolate(CharTraj, newLength = max(length(CharTraj)))
Error in xy.coords(x, y) :
'x' is a list, but does not have components 'x' and 'y'

Thank you,
Golnaz

@asardaes
Copy link
Owner

asardaes commented May 31, 2017

Hello, are you sure you are using the newest version of the package? It might be a good idea to update your R and RStudio installation if necessary. The newLength parameter was removed quite a while ago. On the other hand, create_dtwclust was added more recently, but you shouldn't use that anymore, since now the main function is tsclust.

Use sessionInfo() to find out your R version, the first line of output will tell you (latest version is 3.4.0).

Use utils::packageVersion("dtwclust") to find out the version of the package (latest CRAN version is 3.2.0 4.0.1).

EDIT: I should point out that the lengths function was added to R in version 3.2.0. You'll need to update R if you want to use the latest version of the package. I'm closing this issue for now, let me know if you still have problems after updating.

@asardaes asardaes closed this as completed Jun 8, 2017
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