{"id":20894282,"url":"https://github.com/atlasoflivingaustralia/corella","last_synced_at":"2026-04-21T12:33:51.565Z","repository":{"id":258080016,"uuid":"865144283","full_name":"AtlasOfLivingAustralia/corella","owner":"AtlasOfLivingAustralia","description":"Prepare and check data to comply with Darwin Core Standard in R","archived":false,"fork":false,"pushed_at":"2025-10-29T06:29:20.000Z","size":5479,"stargazers_count":2,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T23:24:56.162Z","etag":null,"topics":["darwin-core","data-standardisation","data-standardization","ecology","r","rstats"],"latest_commit_sha":null,"homepage":"https://corella.ala.org.au/","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/AtlasOfLivingAustralia.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-30T03:53:47.000Z","updated_at":"2025-10-24T21:16:23.000Z","dependencies_parsed_at":"2025-06-05T09:22:00.624Z","dependency_job_id":"f8ff6c18-a01f-47e5-914d-9507904b9d73","html_url":"https://github.com/AtlasOfLivingAustralia/corella","commit_stats":null,"previous_names":["atlasoflivingaustralia/corella"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AtlasOfLivingAustralia/corella","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtlasOfLivingAustralia%2Fcorella","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtlasOfLivingAustralia%2Fcorella/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtlasOfLivingAustralia%2Fcorella/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtlasOfLivingAustralia%2Fcorella/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AtlasOfLivingAustralia","download_url":"https://codeload.github.com/AtlasOfLivingAustralia/corella/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtlasOfLivingAustralia%2Fcorella/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32091902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["darwin-core","data-standardisation","data-standardization","ecology","r","rstats"],"created_at":"2024-11-18T10:18:47.639Z","updated_at":"2026-04-21T12:33:51.537Z","avatar_url":"https://github.com/AtlasOfLivingAustralia.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, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# corella \u003ca href=\"https://corella.ala.org.au\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"139\" alt=\"corella website\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/corella)](https://CRAN.R-project.org/package=corella)\n[![Codecov test coverage](https://codecov.io/gh/AtlasOfLivingAustralia/corella/graph/badge.svg)](https://app.codecov.io/gh/AtlasOfLivingAustralia/corella)\n\u003c!-- badges: end --\u003e\n\n## Overview\n\n`corella` is an R package that helps users standardize their data using the \n[*Darwin Core*](https://dwc.tdwg.org) data standard, used for biodiversity data like species occurrences. `corella` provides tools to prepare, manipulate and validate data against the standard's criteria. Once standardized, data can be subsequently shared as a [*Darwin Core Archive*](https://ipt.gbif.org/manual/en/ipt/latest/dwca-guide#what-is-darwin-core-archive-dwc-a) and published to open data infrastructures like the [Atlas of Living Australia](https://www.ala.org.au) and [GBIF](https://www.gbif.org/). \n\n`corella` was built, and is maintained, by the [Science \u0026 Decision Support Team](https://labs.ala.org.au) at the [Atlas of Living Australia](https://www.ala.org.au) (ALA). It is named for the Little Corella ([_Cacatua sanguinea_](https://bie.ala.org.au/species/https%3A//biodiversity.org.au/afd/taxa/34b31e86-7ade-4cba-960f-82a6ae586206)). The logo was designed by [Dax Kellie](https://daxkellie.com/).\n\nIf you have any comments, questions or suggestions, please [contact us](mailto:support@ala.org.au).\n\n\n## Installation\n\nInstall from CRAN:\n\n```r\ninstall.packages(\"corella\")\n```\n\n\nInstall the development version of `corella` from GitHub:\n\n```r\n# install.packages(\"devtools\")\ndevtools::install_github(\"AtlasOfLivingAustralia/corella\")\n```\n\n## Usage\n\nHere we have a small sample of example data containing observations of cockatoos. Using corella we can convert our data to use Darwin Core Standard.\n\n```{r}\nlibrary(corella)\nlibrary(tibble)\n\n# A simple example of species occurrence data\ndf \u003c- tibble(\n  species = c(\"Callocephalon fimbriatum\", \"Eolophus roseicapilla\"),\n  latitude = c(-35.310, \"-35.273\"), # deliberate error for demonstration purposes\n  longitude = c(149.125, 149.133),\n  eventDate = c(\"14-01-2023\", \"15-01-2023\"),\n  status = c(\"present\", \"present\")\n)\n\ndf\n```\n\nOne of the most important aspects of Darwin Core Standard is using standard column names (Darwin Core *terms*). We can update column names in our data to match Darwin Core terms with `set_` functions. \n\nEach `set_` function name corresponds to the type of data, and argument names correspond to the available Darwin Core terms to use as column names. `set_` functions support data wrangling operations \u0026 `dplyr::mutate()` functionality, meaning columns can be changed or fixed in your pipe. `set_` functions will indicate if anything needs fixing because they also automatically run checks on each column data to make sure each column is in the correct format.\n\n```{r}\nsuppressMessages( # for readability\n\ndf |\u003e\n  set_coordinates(\n    decimalLatitude = as.numeric(latitude), # fix latitude\n    decimalLongitude = longitude\n    ) |\u003e\n  set_scientific_name(\n    scientificName = species\n    ) |\u003e\n  set_datetime(\n    eventDate = lubridate::dmy(eventDate) # specify date format\n    ) |\u003e\n  set_occurrences(occurrenceStatus = status)\n\n)\n```\n\nNot sure where to start? Use `suggest_workflow()` to know what steps you need to make to make your data Darwin Core compliant.\n\n```{r}\ndf |\u003e \n  suggest_workflow()\n```\n\nOr, if your data is nearly ready and you want to run checks over all columns that match Darwin Core terms, run `check_dataset()`.\n\n```{r}\ndf |\u003e\n  check_dataset()\n```\n\n\n## Citing corella\n\nTo generate a citation for the package version you are using, you can\nrun:\n\n``` r\ncitation(package = \"corella\")\n```\n\nThe current recommended citation is:\n\n\u003e Kellie D, Balasubramaniam S \u0026 Westgate MJ (2025) corella:\n\u003e Tools to standardize biodiversity data to Darwin Core. R Package version\n\u003e 0.1.4.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatlasoflivingaustralia%2Fcorella","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatlasoflivingaustralia%2Fcorella","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatlasoflivingaustralia%2Fcorella/lists"}