{"id":18722530,"url":"https://github.com/mdsumner/sctrip","last_synced_at":"2025-08-16T15:04:45.412Z","repository":{"id":72211858,"uuid":"82551477","full_name":"mdsumner/sctrip","owner":"mdsumner","description":"trip reboot","archived":false,"fork":false,"pushed_at":"2017-03-06T12:34:29.000Z","size":25,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T12:16:25.430Z","etag":null,"topics":["rstats","spatial","trip"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdsumner.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-20T11:40:00.000Z","updated_at":"2017-07-17T08:42:52.000Z","dependencies_parsed_at":"2023-02-24T05:30:47.006Z","dependency_job_id":null,"html_url":"https://github.com/mdsumner/sctrip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fsctrip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fsctrip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fsctrip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdsumner%2Fsctrip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdsumner","download_url":"https://codeload.github.com/mdsumner/sctrip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239587244,"owners_count":19663892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rstats","spatial","trip"],"created_at":"2024-11-07T13:41:50.329Z","updated_at":"2025-02-19T02:48:04.245Z","avatar_url":"https://github.com/mdsumner.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n[![Travis-CI Build Status](https://travis-ci.org/mdsumner/sctrip.svg?branch=master)](https://travis-ci.org/mdsumner/sctrip)\n[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/mdsumner/sctrip?branch=master\u0026svg=true)](https://ci.appveyor.com/project/mdsumner/sctrip)\n[![Coverage Status](https://img.shields.io/codecov/c/github/mdsumner/sctrip/master.svg)](https://codecov.io/github/mdsumner/sctrip?branch=master)\n\n\n# sctrip\n\nThe goal of sctrip is to reboot the trip package on a firmer basis. \n\nIt's not very functional yet, but the goal is to create normal-form PATH objects that fit within a very general \nframework 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. \n\n## Installation\n\nYou can install sctrip from github with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"mdsumner/sctrip\")\n```\n\n## Example\n\nConvert an existing trip object to a PATH and then a PRIMITIVE, composed of segments. \n\n```{r}\n\nlibrary(sctrip)\ndata(\"walrus818\", package= \"trip\")\nPRIMITIVE(walrus818)\n```\nVery 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. \n\n```{r example}\nlibrary(sctrip)\napath \u003c- sc_path(aurora, LONGITUDE_DEGEAST, LATITUDE_DEGNORTH, DATE_TIME_UTC)\n```\n\nThe PATH object can be converted to PRIMITIVE form: \n\n```{r primitive}\nsc::PRIMITIVE(apath)\n```\n\nWe can do that no matter what choice we made when nominating the vertex columns. \n\n```{r flexible}\nsc::PRIMITIVE(sc_path(aurora, DATE_TIME_UTC, LATITUDE_DEGNORTH))\n```\n\n\n\nPlease note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdsumner%2Fsctrip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdsumner%2Fsctrip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdsumner%2Fsctrip/lists"}