Skip to content

Data package for accessing GeoDa datasets using R

License

Notifications You must be signed in to change notification settings

VaishnavMenon/geodaData

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geodaData

The goal of geodaData is to store sample spatial datasets. These datasets are intended to be used to teach basic spatial analysis concepts. They are used in the weekly R Spatial Workshop at the Center for Spatial Data Science at UChicago, and are based off of the GeoDa workbook and data site developed by Luc Anselin and team. Datasets are stored in the sf spatial object format.

Installation

You can install the development version of geodaData from GitHub with:

# install.packages("remotes")
remotes::install_github("spatialanalysis/geodaData")

Usage

To use geodaData in a workshop, first load sf, then load the package:

library(sf) # can use without sf, but datasets will print weirdly in console
library(geodaData)

Find a list of all datasets in geodaData with:

data(package = "geodaData")

You can load a specific dataset into your R environment and show the metadata for it:

data("nyc")
?nyc

Instructions for adding a new dataset to this package can be found in the Wiki of this repository.

Similar Packages

Interested in finding more R packages with spatial data included? Check out:

About

Data package for accessing GeoDa datasets using R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%