You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have started using dtwclust package. However, there are several examples that cannot be run. So far I have encountered the following problems:
create_dtwclust: the function cannot be found.
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
The text was updated successfully, but these errors were encountered:
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.
Hello,
I have started using dtwclust package. However, there are several examples that cannot be run. So far I have encountered the following problems:
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
The text was updated successfully, but these errors were encountered: