GithubHelp home page GithubHelp logo

Comments (3)

birderboone avatar birderboone commented on June 3, 2024

My personal thoughts. I think having a prefix the way sf does might be the easiest thing to circumvent the column name issues, something like sft_ or track_, that way we have little chance that column already existed in the users data.frame.

from sftrack.

basille avatar basille commented on June 3, 2024

My take on it:

  • I'm in favor of a prefix, but that also opens more questions. I like sft_, unless we can get both track_ and traj_ separately for each type of object (after all, geometries and timestamps are different for locations and steps). However, this will only apply to timestamp, grouping and error, right? Not the geometry itself (I agree, better to leave it to sf itself), which might actually be confusing. Maybe we could also have a sft_geometry attribute, which simply retrieves (and sets) the sf_column one?
  • I think we should leave the option to use whatever name the user wants (with arguments like timestamp_name, grouping_name, etc. in the function), as long as we provide sane defaults.
  • If the column names are already taken, the function should fail, unless overwrite = TRUE, in which case it should proceed, overwrite existing columns, and still throw a warning.
  • My preferences for default pairs of attribute names/column names are (or a variant with track_/traj_ as described above):
    "geometry": sft_geometry = sf_column
    "timestamp": sft_timestamp
    "grouping": sft_grouping
    "error": sft_error

from sftrack.

basille avatar basille commented on June 3, 2024

Closing this issue now that sftrack is developed and on CRAN.

from sftrack.

Related Issues (20)

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.