{"id":16272872,"url":"https://github.com/robitalec/targets-spatsoc-networks","last_synced_at":"2025-04-08T15:50:52.539Z","repository":{"id":109036217,"uuid":"353198467","full_name":"robitalec/targets-spatsoc-networks","owner":"robitalec","description":":hammer_and_wrench: Example repository for generating networks using spatsoc, with a targets workflow","archived":false,"fork":false,"pushed_at":"2023-08-28T12:17:16.000Z","size":456,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T12:30:46.425Z","etag":null,"topics":["network-analysis","r","social-network-analysis","spatsoc","targets","workflow"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robitalec.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-03-31T02:17:38.000Z","updated_at":"2023-08-28T12:17:20.000Z","dependencies_parsed_at":"2024-06-11T16:59:10.489Z","dependency_job_id":"3c28cd6d-3bb2-427c-8636-6b6fc3f600c2","html_url":"https://github.com/robitalec/targets-spatsoc-networks","commit_stats":null,"previous_names":[],"tags_count":6,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Ftargets-spatsoc-networks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Ftargets-spatsoc-networks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Ftargets-spatsoc-networks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robitalec%2Ftargets-spatsoc-networks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robitalec","download_url":"https://codeload.github.com/robitalec/targets-spatsoc-networks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247877421,"owners_count":21011152,"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":["network-analysis","r","social-network-analysis","spatsoc","targets","workflow"],"created_at":"2024-10-10T18:20:06.352Z","updated_at":"2025-04-08T15:50:52.517Z","avatar_url":"https://github.com/robitalec.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\nalways_allow_html: true\n---\n\n\n[![DOI](https://zenodo.org/badge/353198467.svg)](https://zenodo.org/badge/latestdoi/353198467)\n\n\n# targets-spatsoc-networks\n\nExample [`targets`](https://github.com/ropensci/targets) workflow for generating networks using [`spatsoc`](https://github.com/ropensci/spatsoc/).\n\n```{r include=FALSE}\na \u003c- targets::tar_visnetwork(targets_only = TRUE)\n```\n\n```{r, echo = FALSE}\na\n```\n\n\n## Usage\n\n1. Clone/fork/download/etc make your own copy somewhere!\n2. Add your data to the input folder (and remove the example data)\n3. Open `_targets.R`\n4. Change the global variables in the Variables section\n5. Set your output (see below)\n6. Run `targets::tar_make()`\n\nAs for output, right now it's set up with four different options after the Targets section\n\n1. One data set, simply set the path\n2. Multiple data sets, provide the list or wildcard of paths\n3. Multiple data sets, and matching thresholds or other variables. Eg. one data set with 50m spatial threshold and another with 100m. \n4. Multiple data sets, crossed with multiple thresholds (or other variables). This could be used for a sensitivity analysis. \n\nTo select your output format, comment out or delete the other options. Targets looks for the last declared target in the `_targets.R` file. \n\n\nNote: randomizations in progress, see the [branch](https://github.com/robitalec/targets-spatsoc-networks/tree/randomizations). \n\n## Resources\n\n[`spatsoc` vignette: Using `spatsoc` in social network analysis](https://docs.ropensci.org/spatsoc/articles/using-in-sna.html)\n\n[`targets` manual](https://books.ropensci.org/targets/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobitalec%2Ftargets-spatsoc-networks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobitalec%2Ftargets-spatsoc-networks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobitalec%2Ftargets-spatsoc-networks/lists"}