knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Travis build status

railtrails

This R data package provides rail information about rail trails from the excellent TrailLink website, sponsored by the Rails-to-Trails Conservancy. Includes information (such as name, length, surface, and reviews) 3,846 trails in every state in the United States.

Installation

You can install railtrails with the install.packages() function.

install.packages("railtrails")

Loading the data

Here is how to load the data:

d <- railtrails::railtrails
d

"Unnesting" trail reviews

You may want to "unnest" the list-column with reviews in the following way:

library(tidyr)
d <- railtrails::railtrails
d <- d %>% unnest(raw_reviews)
d

Shiny App

An interactive web application (Shiny) for finding the top-rated trails in each state is available here. The source code is in the app directory.

Notes

Code of conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



jrosen48/railtrails documentation built on March 3, 2024, 10:26 p.m.