Giter Site home page Giter Site logo

segclust2d's People

Contributors

rpatin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cynsky fasladodo

segclust2d's Issues

cannot coerce class ‘"dist"’ to a data.frame

Hi,

I know this issue was reported (and solved apparently) here before, but the solution (detaching package "sf" and/or "vegan") doesn't work for m I'm still getting the same error:

df1 <- add_covariates(df, coord.names = c("lon", "lat"), timecol='date', smoothed = TRUE, units ="day")
Error in as.data.frame.default(d) :
cannot coerce class ‘"dist"’ to a data.frame

I tried on 2 different machines (Windows PC and Macbook), both latest R versions and packages installed; same workflow. However, it works fine on my Macbook but not on my Windows PC, the latter is the better machine that I really need to use for my data.

For now, I can just add the covariates on my Mac and save it and open it up again on my PC as a workaround, but it would be great to solve this issue as I'm using this package quite a bit. Has anyone experienced this issue and has a solution at hand?

Cheers,
Ingo

cannot coerce class ‘"dist"’ to a data.frame

Hi Patin:
I am following your vignettes: preparing data to learn the tools, the issue occurred like title when i run the covariate calculations parts, no matter to use your example data "simulmode" or my own data, the error cannot fix. I am trouble in this step now, do you know how to solve this problem, thanks.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.