knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of sctrip is to reboot the trip package on a firmer basis.
It's not very functional yet, but the goal is to create normal-form PATH objects that fit within a very general framework for structured data. PATHs aren't that useful in normal-form, but converting from external path-forms to PRIMITIVE forms and back is very useful. More soon.
You can install sctrip from github with:
# install.packages("devtools") devtools::install_github("mdsumner/sctrip")
Convert an existing trip object to a PATH and then a PRIMITIVE, composed of segments.
library(sctrip) data("walrus818", package= "trip") PRIMITIVE(walrus818)
Very much experimental, but here we work from raw data to create trips. A trip is a specialist and bespoke PATH, this will be turned inot tools that are much more general.
library(sctrip) apath <- sc_path(aurora, LONGITUDE_DEGEAST, LATITUDE_DEGNORTH, DATE_TIME_UTC)
The PATH object can be converted to PRIMITIVE form:
sc::PRIMITIVE(apath)
We can do that no matter what choice we made when nominating the vertex columns.
sc::PRIMITIVE(sc_path(aurora, DATE_TIME_UTC, LATITUDE_DEGNORTH))
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.