{"id":22413707,"url":"https://github.com/jsta/wikilake","last_synced_at":"2025-07-31T23:31:35.610Z","repository":{"id":56934588,"uuid":"77919621","full_name":"jsta/wikilake","owner":"jsta","description":"Scrape lake metadata tables from Wikipedia 🏞","archived":false,"fork":false,"pushed_at":"2023-01-07T04:14:27.000Z","size":1568,"stargazers_count":8,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-11T17:09:22.936Z","etag":null,"topics":["cran","lakes","limnology","rstats","wikipedia"],"latest_commit_sha":null,"homepage":"https://jsta.github.io/wikilake","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/jsta.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}},"created_at":"2017-01-03T13:30:07.000Z","updated_at":"2023-03-06T13:49:21.000Z","dependencies_parsed_at":"2023-02-06T11:31:30.107Z","dependency_job_id":null,"html_url":"https://github.com/jsta/wikilake","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fwikilake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fwikilake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fwikilake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsta%2Fwikilake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsta","download_url":"https://codeload.github.com/jsta/wikilake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228312125,"owners_count":17900219,"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":["cran","lakes","limnology","rstats","wikipedia"],"created_at":"2024-12-05T14:14:22.430Z","updated_at":"2024-12-05T14:14:23.245Z","avatar_url":"https://github.com/jsta.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 = \"tools/images/\"\n)\n```\n\n# wikilake\n\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/wikilake)](https://cran.r-project.org/package=wikilake)\n[![Travis-CI Build Status](https://travis-ci.org/jsta/wikilake.svg?branch=master)](https://travis-ci.org/jsta/wikilake)\n[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/wikilake)](https://CRAN.R-project.org/package=wikilake)\n\nThe `wikilake` package provides functions to scrape the metadata tables from lake pages on Wikipedia.\n\n## Installation\n\n## Stable release from CRAN\n`install.packages(\"wikilake\")`\n\n## Development version\n`devtools::install_github(\"jsta/wikilake\")`\n\n## Usage\n\n```{r example}\nlibrary(wikilake)\n```\n\n```{r metadata only, warning=FALSE}\n# metadata only, see units of numeric fields with wikilake::unit_key_()\nlake_wiki(\"Lake Mendota\")\n```\n\n```{r }\n# use the clean = FALSE argument to get raw data\n# (i.e. avoid parsing of numeric fields)\nlake_wiki(\"Lake Mendota\", clean = FALSE)\n```\n\n```{r }\n# pretty printing metadata\n```\n\n```{r echo = FALSE, message=FALSE}\nknitr::kable(\n  dplyr::left_join( \n    tidyr::pivot_longer(lake_wiki(\"Lake Mendota\"), \n                      cols = tidyr::everything(),\n                      values_to = \"values_numeric\",\n                      values_transform = list(values_numeric = as.character)),\n  tidyr::pivot_longer(lake_wiki(\"Lake Mendota\", clean = FALSE), \n                      cols = tidyr::everything(),\n                      values_to = \"values_raw\",\n                      values_transform = list(values_raw = as.character)),\n  \n  by = \"name\"))\n```\n\n```{r worldmapping}\n# metadata + map\nlake_wiki(\"Gull Lake (Michigan)\", map = TRUE)\n```\n\n```{r mapping}\nlake_wiki(\"Gull Lake (Michigan)\", map = TRUE, database = \"usa\")\n```\n\n```{r mapping2}\nlake_wiki(\"Lake Nipigon\", map = TRUE, regions = \"Canada\")\n```\n\n```{r mapping3}\nlake_wiki(\"Cass Lake (Michigan)\", map = TRUE, database = \"state\", regions = \"Michigan\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fwikilake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsta%2Fwikilake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsta%2Fwikilake/lists"}