Comments (3)
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.
My take on it:
- I'm in favor of a prefix, but that also opens more questions. I like
sft_
, unless we can get bothtrack_
andtraj_
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 tosf
itself), which might actually be confusing. Maybe we could also have asft_geometry
attribute, which simply retrieves (and sets) thesf_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.
Closing this issue now that sftrack
is developed and on CRAN.
from sftrack.
Related Issues (20)
- Active burst structure
- Names of the row level and column level grouping class. HOT 1
- The structure and function of the error column HOT 1
- How should sftrack deal with fractional seconds? HOT 2
- "NAs not allowed in burst" error to build vignettes HOT 2
- What common step metrics should sftrack calculate. HOT 5
- as_sftrack fails when burst column is already named 'burst' HOT 4
- build pkgdown website HOT 2
- Messing up steps with step_metrics? HOT 3
- Bug with integer timestamps: Error in if (tcl == "POSIXct") { : argument is of length zero HOT 2
- README example doesn't run HOT 2
- Elements of an 's_group' should be atomic
- Travis problem installing gsl on linux HOT 3
- Installation error HOT 1
- Export as_sftraj object to shapefile HOT 1
- typo HOT 1
- loading failed HOT 5
- [Use Case] Major functionality issue: concerting data to `sftrack` breaks functionality of parent class `sf` or `sfc` HOT 8
- upcoming sf breaks sftracks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sftrack.