Package 'mapmaryland'

Title: Easy Access to Maryland Spatial Data
Description: A small collection of data sources and utility functions for working with state and county data sources in Maryland.
Authors: Eli Pousson [aut, cre, cph]
Maintainer: Eli Pousson <[email protected]>
License: MIT + file LICENSE
Version: 0.2.0.9000
Built: 2024-10-29 05:17:02 UTC
Source: https://github.com/elipousson/mapmaryland

Help Index


Cache data from Maryland iMap

Description

cache_imap_data() is a wrapper for get_imap_data() and getdata::cache_location_data() that save a layer from Maryland iMap or a subset of a layer to a local file. By default, the data is saved to the mapmaryland package cache folder.

Usage

cache_imap_data(
  data = NULL,
  nm = NULL,
  ...,
  location = NULL,
  name = NULL,
  label = NULL,
  fileext = "gpkg",
  filename = NULL,
  path = NULL,
  prefix = NULL,
  postfix = NULL,
  cache = TRUE,
  pkg = "getdata",
  create = TRUE,
  overwrite = FALSE,
  call = caller_env()
)

Arguments

data

Data to pass to getdata::bind_block_col(). format_parcel_data() only.

nm

Layer name identifier used to retrieve url from md_imap_index based on the snakecase "nm" column; Default: NULL.

...

Additional parameters passed to getdata::get_esri_data()

location

A sf, sfc, or bbox object (or other object convertible with sfext::as_bbox(). Required.

name

Name to make file name converted to snake case with janitor::make_clean_names(), e.g. "Residential zoning map" becomes "residential_zoning_map". If the name includes a file extension it is assumed that the filename has been provided as the name parameter.

label

Label to combine with name converted to snake case with janitor::make_clean_names(). The label is designed to identify the area or other shared characteristics across multiple data files, maps, or plots. label is ignored if name is NULL or if name includes a file extension.

fileext

File type or extension. Optional if filename or path include a file extension.

filename

File name; if filename is NULL and path does not include a file extension, name and file extension are both required.

path

Path to file or data directory. Optional. If path includes a file extension and filename and fileext are both NULL, the filename and extension included with path will be used instead. If multiple file extensions are provided to filename, path, or fileext, make_filename() will abort.

prefix

File name prefix. "date" adds a date prefix, "time" adds a date/time prefix; defaults to NULL.

postfix

File name postfix; defaults to NULL.

cache

If TRUE, path is set to the package cache directory using get_data_dir(); defaults to FALSE.

pkg

Package name passed to appname parameter of rappdirs::user_cache_dir()

create

If FALSE and path does not exist, return path with a warning. If TRUE and rlang::is_interactive() is TRUE, ask user if directory should be created. If the session not interactive and create is TRUE, a new directory will be created.

overwrite

If TRUE, remove a file with the same name and path

call

The execution environment of a currently running function, e.g. caller_env(). The function will be mentioned in error messages as the source of the error. See the call argument of abort() for more information.


Format Maryland simple feature data

Description

Convert the coordinate reference system, convert invalid geometry to valid geometry with sf::st_make_valid(), and, optionally, erase water, and clean names with janitor::clean_names().

Usage

format_md_sf(
  data,
  crs = getOption("mapmaryland.crs", default = 3857),
  erase_water = FALSE,
  erase_data = NULL,
  clean_names = TRUE,
  dTolerance = NULL,
  smooth = FALSE,
  sf_col = "geometry",
  ...
)

Arguments

data

A sf object or for (format_md_crash_data() only) a data.frame object.

crs

coordinate reference system. Defaults to getOption("mapmaryland.crs", default = 3857). This option can be set with set_mapmaryland_options().

erase_water

If TRUE, erase any geometry intersecting with md_water; Default: FALSE. If TRUE, and erase_data is not NULL, md_water is combined and unioned with erase_data.

erase_data

A sf, sfc, or bbox object with geometry that should be erased from the data, Default: NULL

clean_names

If TRUE, set .name_repair to janitor::make_clean_names(); defaults to TRUE.

dTolerance

numeric; tolerance parameter, specified for all or for each feature geometry. If you run st_simplify, the input data is specified with long-lat coordinates and sf_use_s2() returns TRUE, then the value of dTolerance must be specified in meters.

smooth

If TRUE, smooth data with smoothr::smooth using default method and parameters, Default: FALSE.

sf_col

Name to use for output sf column, Default: 'geometry'.

...

Additional parameters passed to format_data

Value

A modified version of the input simple feature data.

See Also

getdata::format_sf_data


Get data from Maryland iMap

Description

Get data from Maryland iMap including Computer Assisted Mass Appraisal (CAMA), parcel data, Maryland Inventory of Historic Properties data, and a variety of water data.

Usage

get_imap_data(
  location = NULL,
  nm = NULL,
  crs = getOption("mapmaryland.crs", default = 3857),
  ...
)

get_cama_data(
  location,
  type = "core",
  crs = getOption("mapmaryland.crs", default = 3857),
  ...
)

get_parcel_data(
  location,
  type = "boundaries",
  crs = getOption("mapmaryland.crs", default = 3857),
  block = FALSE,
  ...
)

format_parcel_data(
  data,
  imap_addr_cols = list(bldg_num = "strtnum", street_dir_prefix = "strtdir", street_name
    = "strtnam", street_suffix = "strttyp")
)

get_mht_data(
  location,
  type = "mihp",
  crs = getOption("mapmaryland.crs", default = 3857),
  ...
)

get_water_data(
  location,
  type = "streams",
  crs = getOption("mapmaryland.crs", default = 3857),
  ...
)

get_imap_url(nm = NULL)

Arguments

location

A sf, sfc, or bbox object (or other object convertible with sfext::as_bbox(). Required.

nm

Layer name identifier used to retrieve url from md_imap_index based on the snakecase "nm" column; Default: NULL.

crs

Coordinate reference system to return. Defaults to getOption("mapmaryland.crs", default = 3857).

...

Additional parameters passed to getdata::get_esri_data()

type

Default and supported options vary by function. See details.

block

If block is TRUE, pass parcel data to getdata::bind_block_col(). Defaults to FALSE.

data

Data to pass to getdata::bind_block_col(). format_parcel_data() only.

imap_addr_cols

Named list with address column names for input data. Passed to corresponding parameters in getdata::bind_block_col()

Details

Options for type parameter:

  • get_cama_data(): Default: "core"; options: "bldg" (detailed building characteristics), "core", "land", "subarea" (building subarea).

  • get_water_data(): Default: "streams", options: "streams" (Rivers and streams generalized), "streams detailed" (Rivers and streams generalized), "federal watersheds", "8 digit watersheds", "12 digit watersheds", "navigable waterways", "ponds" (Lakes and ponds)

  • get_parcel_data(): Default "boundaries", options: "boundaries" (Parcel boundaries), "points" (Parcel points)

  • get_mht_data(): Default: "mihp"; options: "mihp" (Maryland Inventory of Historic Properties), "nr" (National Register of Historic Places), "easements" (Preservation Easements held by the Maryland Historical Trust)

Helper functions:


Get and format Maryland crash data

Description

Get crash data using get_md_open_data(). format_md_crash_data works with a data frame of crash data from get_md_crash_data() when type = "crashes". format_md_crashes_person() formats data when type = "persons". format_md_crashes() calls one or the other depending on the type parameter.

Usage

get_md_crash_data(
  location = NULL,
  ...,
  report_no = NULL,
  where = NULL,
  type = "crashes"
)

format_md_crash_data(data, type = "crashes", drop_code = TRUE, ...)

format_md_crashes(data)

format_md_crash_date(data, cols = c("acc_date", "acc_time"))

format_md_crashes_person(
  data,
  start_year = 2022,
  end_year = 2022,
  na_dates = c("1/1/1900", "19000101", "19001111", "19001212", "19200202")
)

Arguments

location

A sf or sfc object covering the location to return crash data.

...

Passed to get_md_open_data() for get_md_crash_data() or passed to specified formatting functions when used with format_md_crash_data().

report_no

Crash report numbers. Defaults to NULL. Optionally used to filter results if type is "persons" or "vehicles".

where

A query parameter passed to get_md_open_data()

type

Supported options include "crashes" (default), "persons" (or "crashes_person"), and "vehicles" (or "crashes_vehicle").

data

Data frame with Maryland vehicular crash data; typically from get_md_crash_data

drop_code

If TRUE (default), drop all columns that end with "code"

cols

Column names to use with format_md_crash_date().

start_year, end_year

Start and end year to use when checking validity of birth dates.

na_dates

Character vector of invalid dates to replace with a NA_character_ value.

Examples

## Not run: 
if (interactive()) {
  get_md_crash_data(
    where = "(year = '2020') AND (quarter = 'Q2')",
    name_col = "county_desc",
    name = "Cecil"
  )
}

## End(Not run)

Get data from the Maryland Open Data Portal

Description

Wrap getdata::get_open_data to access the Maryland Open Data portal. The source url can be set with an option named "mapmaryland.open_data_source_url" but it defaults to the statewide open data portal https://opendata.maryland.gov The token type can be set with an option named "mapmaryland.open_data_token_type" but it defaults to "MARYLAND_OPEN_DATA_API_KEY".

Usage

get_md_open_data(
  resource = NULL,
  type = NULL,
  crs = getOption("mapmaryland.crs", default = 3857),
  geometry = FALSE,
  token = NULL,
  ...
)

Arguments

resource

Resource identifier code passed to "data" parameter of getdata::get_open_data

type

Type of data to return. Supported options: "crashes", "road closures", "bay pollution reduction"

crs

Coordinate reference system of bounding box to return; defaults to NULL which maintains the crs of the input object.

geometry

If TRUE and coords are provided, return a sf object. Default FALSE.

token

Optional access token or API Key to pass to getdata::set_access_token(). The token type variable is set by getOption("mapmaryland.open_data_token_type", default = "MARYLAND_OPEN_DATA_API_KEY")

...

Arguments passed on to getdata::get_open_data

data

A data set identifier (known as a resource for Socrata) or a url for an individual dataset. If data is set to "list" and a valid source_url is provided, the function returns a list of all available resources. If data is a url, source_url must be NULL. get_socrata_metadata requires the data parameter.

source_url

A data source url. For Socrata, this should the base url for the open data portal.

source_type

Data source type; defaults to "socrata" which is currently the only supported option.

select

Names of of columns to return or transformed, equivalent to a SELECT in SQL. Passed to SODA $select parameter, see https://dev.socrata.com/docs/queries/select.html for more information.

where

Condition to filters the rows to return, equivalent to WHERE in SQL. Passed to the SODA $where parameter, see https://dev.socrata.com/docs/queries/where.html for more information.

query

A full SoQL query string, all as one parameter. Passed to the SODA $query parameter, see https://dev.socrata.com/docs/queries/query.html for more information.

location

sf object. If multiple areas are provided, they are unioned into a single sf object using sf::st_union()

dist

buffer distance in units. Optional.

diag_ratio

ratio of diagonal distance of area's bounding box used as buffer distance. e.g. if the diagonal distance is 3000 meters and the "diag_ratio = 0.1" a 300 meter will be used. Ignored when dist is provided.

unit

Units for buffer. Supported options include "meter", "foot", "kilometer", and "mile", "nautical mile" Common abbreviations (e.g. "km" instead of "kilometer") are also supported. Distance in units is converted to units matching GDAL units for x; defaults to "meter"

asp

Aspect ratio of width to height as a numeric value (e.g. 0.33) or character (e.g. "1:3"). If numeric, get_asp() returns the same value without modification.

name,name_col

Name of column in Socrata data resource with location names (e.g. County) and name of location to return.

location_col

Name of a "location" or "point" type column in a Socrata dataset.

coords

Coordinate columns for input data.frame or output sf object (if geometry is 'centroid' or 'point') Default: c("lon", "lat").

token,type

Access token or API Key and token type (name used to store token in .Renvironment). A token may be required to access data from Socrata and other open data portals but can be stored as an environment variable with set_access_token.

from_crs

Coordinate reference system used to match the location CRS to the source data.

clean_names

If TRUE, clean names provided to nm or created based on value of col using janitor::clean_names. If FALSE, use names as provided.

quiet

If TRUE, suppress messages when downloading data. Defaults to FALSE.

.name_repair

One of "unique", "universal", or "check_unique". See vctrs::vec_as_names() for the meaning of these options.


Use package data or the {tigris} package to get Maryland data from the U.S. Census Bureau

Description

Get package data with Maryland counties, U.S. Congressional District, or Census designated places by name or GeoID or use the tigris package to download state data.

Usage

get_md_tigris(
  name = NULL,
  type = "counties",
  crs = getOption("mapmaryland.crs", default = 3857),
  erase_water = FALSE,
  ...
)

Arguments

name

Name matching a value in the namelsad, namelsad, or geoid columns of md_counties, md_census_places, md_congressional_districts, or one of the data sets available for download with {tigris}; Default: NULL

type

Type of data to return, Default: "counties"; See details for supported options.

crs

coordinate reference system. Defaults to getOption("mapmaryland.crs", default = 3857). This option can be set with set_mapmaryland_options().

erase_water

If TRUE, erase any geometry intersecting with md_water; Default: FALSE. If TRUE, and erase_data is not NULL, md_water is combined and unioned with erase_data.

...

Additional parameters passed on to {tigris} functions.

Details

Use {mapmaryland} packaged data or use tigris U.S. Census Bureau API:

Supported options that access data included with the {mapmaryland} package include "counties", "census places", "congressional districts", "legislative districts", and "water".

Options that access data by calling one of several tigris functions for downloading data from the U.S. Census Bureau API include "senate district", "tracts", "block groups", "blocks", "pumas", "voting districts", "zctas", "roads", "primary secondary roads", "area water", "linear water", and "landmarks".

tigris functions that do not use a "state" parameter (e.g. tigris::coastline or tigris::rails) are not supported by this function.

Value

A simple feature object matching the type provided.


Maryland ArcGIS REST API Services Index

Description

A non-comprehensive list of ArcGIS services maintained by public agencies, academic units, and nonprofit organizations in Maryland. Layers available at the service_url can be accessed using the esri2sf package.

Usage

md_arcgis_index

Format

A data frame with 95 rows and 13 variables:

name

character Source name

operator.abb

character Operator abbreviation

operator

character Operator name

city

character City name

county

character County name

state

character State name

state.abb

character State name abbreviation

geography

character Geographic scope; Options include citywide, countywide, regional (multi-county), statewide, or regional (multistate).

source_type

character Source type

notes

character Notes

public

logical Public data indicator

services_url

character Services URL

hosting

character Hosting type; Currently used as an indicator for ArcGIS Online hosted data with other services assumed to be self-hosted by the source or operator.

Details

Comments, additions, or corrections can be submitted using comments on this open Google Sheet: https://docs.google.com/spreadsheets/d/1c829bZdNqvbpoizulBU_XE5jVeNNck2kHkS-smpQ52s/edit?usp=sharing

Data last updated from Google Sheet 2024-09-18.


Maryland Arts & Entertainment Districts

Description

The Maryland State Arts Council sponsors Arts & Entertainment Districts as a way to stimulate the economy and improve quality of life. This legislation enables local jurisdictions, municipalities, counties, or a combination thereof, to apply for state designations for the Arts and Entertainment Districts within their boundaries and offer tax incentives as provided by law. More information from the Maryland State Arts Council: https://msac.org/programs/arts-entertainment-districts

Usage

md_arts_districts

Format

A data frame with 29 rows and 12 variables:

name

District name

desc

District description

org_name

Organization name

org_url

Organization website URL

org_phone

Organization phone number

org_address

Organization street address

org_city

Organization city

org_county

Organization county

zipcode

Organization zipcode

lon

Longitude

lat

Latitude

geometry

MULTIPOLYGON geometry with boundaries

Source

https://geodata.md.gov/imap/rest/services/BusinessEconomy/MD_IncentiveZones/FeatureServer/2


Maryland Census-designated places

Description

Census Designated Places (CDPs) in the state of Maryland downloaded using the tigris::places function. Updated 2024-10-29.

Usage

md_census_places

Format

A data frame with 536 rows and 17 variables:

statefp

State FIPS code for Maryland

county

County name

countyfp

County FIPS code

placefp

CDP FIPS code

placens

CDP GNIS code

geoid

Unique CDP GeoID

name

Place name

namelsad

Place Legal/statistical area description (LSAD)

lsad

Legal/statistical area description (LSAD)

classfp

Class FIPS code

pcicbsa

Current metropolitan/micropolitan statistical area principal city indicator

mtfcc

MAF/TIGER Feature Class Code (MTFCC)

funcstat

Functional status

aland

Land area (square meters)

awater

Water area (square meters)

intptlat

Latitude of the internal point

intptlon

Longitude of the internal point

geometry

list COLUMN_DESCRIPTION


Maryland U.S. Congressional Districts

Description

U.S. Congressional Districts boundaries downloaded from the U.S. Census Bureau with the tigris::congressional_districts function. Updated 2024-10-29.

Usage

md_congressional_districts

Format

A data frame with 8 rows and 13 variables:

statefp

2-character state FIPS code

cd116fp

116th congressional district FIPS code

geoid

GeoID

namelsad

concatenated variable with geographic area name and legal/statistical area description (LSAD)

lsad

Legal/statistical area description (LSAD)

cdsessn

Congressional session code

mtfcc

MAF/TIGER Feature Class Code (MTFCC)

funcstat

functional status

aland

land area (square meters)

awater

water area (square meters)

intptlat

latitude of the internal point

intptlon

longitude of the internal point

label

Congressional District label

name

Congressional District name

geometry

Multipolygon with district boundary


Maryland Counties (boundaries)

Description

County boundaries downloaded from the U.S. Census Bureau with the tigris::counties function. Counties in the Baltimore–Columbia–Towson Metropolitan Statistical Area (MSA) include Baltimore City, Baltimore County, Carroll County, Anne Arundel County, Howard County, Queen Anne's County, and Harford County. Counties in the DC-VA-MD-WV Metropolitan Statistical Area (MSA) include Montgomery, Frederick, Prince George's, Charles, and Calvert counties. Regions are based on this resource from Visit Maryland https://www.visitmaryland.org/info/maryland-regions. Updated 2024-10-29.

Usage

md_counties

Format

A data frame with 24 rows and 18 variables:

statefp

State FIPS code for Maryland

countyfp

County FIPS code

countyns

County GNIS code

geoid

Unique county FIPS code (concatenation of state and county FIPS codes)

name

County name

namelsad

Concatenated variable length geographic area name and legal/statistical area description (LSAD)

lsad

Legal/statistical area description (LSAD)

classfp

FIPS class code

mtfcc

MAF/TIGER Feature Class Code (MTFCC)

csafp

Combined statistical area code

cbsafp

Metropolitan statistical area/micropolitan statistical area code

metdivfp

Metropolitan division code

funcstat

Functional status

aland

Land area (square meters)

awater

Water area (square meters)

intptlat

Latitude of the internal point

intptlon

Longitude of the internal point

region

Region of the state

geometry

Multipolygon with the county boundary

Source

https://www.census.gov/geo/maps-data/data/tiger-line.html


Maryland Counties (detailed boundaries)

Description

Detailed boundaries for Maryland counties from Maryland iMap.

Usage

md_counties_detailed

Format

A data frame with 24 rows and 6 variables:

statefp

State FIPS code for Maryland

countyfp

County FIPS code

name

County name

geoid

Unique county GeoID (concatenation of state and county FIPS codes)

namelsad

Concatenated variable length geographic area name and legal/statistical area description (LSAD)

geometry

Multipolygon with the county boundary


Maryland House of Delegates Districts (2022)

Description

From the Maryland Department of Planning: "The Maryland General Assembly, under the Maryland Constitution, adopted new state legislative districts on February 1, 2022, based on the changes in population reported in the 2020 U.S. Census and adjusted in accordance with Maryland's No Representation Without Population Act of 2010."

Usage

md_house_districts_2022

Format

A data frame with 71 rows and 6 variables:

name

District name

id

District number

label

District label

members

Number of Delegates for district

pop

Population from 2020 U.S. Census

geometry

District boundary geometry

Source

2022 Maryland Legislative Districts


Maryland iMap Folder/Service Index

Description

Created using esriIndex function from the esri2sf package. Updated 2024-09-18.

Usage

md_imap_index

Format

A data frame with 1,524 rows and 16 variables:

name

character Name

nm

character Name with snake case

type

character Service/layer type

url

character Folder/service/layer URL

urlType

character Index type

folderPath

Folder path

serviceName

character Service/layer type

serviceType

character Service/layer type

id

integer Layer ID number

parentLayerId

integer Parent layer ID number

defaultVisibility

logical Layer default visibility

minScale

double Minimum scale

maxScale

integer Maximum scale

geometryType

character Geometry type

subLayerIds

list Sublayer ID numbers

supportsDynamicLegends

logical Supports dynamic legends


Maryland Metropolitan Planning Organizations (boundaries)

Description

Data from https://geodata.md.gov/imap/rest/services/BusinessEconomy/MD_IncentiveZones/FeatureServer/14

Usage

md_mpos

Format

A data frame with 7 rows and 6 variables:

geoid

GeoID

name

MPO Name

abb

MPO abbreviation or acronym

url

MPO website url

states

States (multiple states separated by semi-colons)

geometry

MULTIPOLYGON geometry for boundaries


Maryland Open Data Portal Index

Description

Public resources from the Maryland Open Data Portal excluding resources cross-listed from Maryland iMap.

Usage

md_open_data_index

Format

A data frame with 737 rows and 11 variables:

name

Resource name

nm

Resource name (snake case)

resource

Resource identifier

description

Description

url

Resource URL

issued

Date issued

modified

Date modified

keyword

list of keywords

identifier

API identifier

theme

Data theme

license

Data license


Maryland K-12 Schools (Public and Charter Schools)

Description

Combined iMap FeatureLayer for traditional public schools and charter schools. The school number previously included in this dataset was incomplete due to the iMap data using a different school name than the MSDE data for a little less than half of schools in the state. As of February 2023, the school number column has been removed to ensure the data is accurate and to avoid confusion. For charter schools, the school_type column has been added based on the grade range. Data based on iMap data layers as of 2023 February 10 for public schools https://geodata.md.gov/imap/rest/services/Education/MD_EducationFacilities/FeatureServer/5 and charter schools https://geodata.md.gov/imap/rest/services/Education/MD_EducationFacilities/FeatureServer/6

Usage

md_schools

Format

A data frame with 1,427 rows and 13 variables:

school_name

School name

address

Street address

city

City name

state

State

zip

Zip code

grades

Grades

school_type

School type

grade_band

Grade band

psc_number

PSC number

lss_number

Local school system number as integer

county

County name

management_type

Management type

geometry

POINT geometry


Maryland Senate Districts (2022)

Description

From the Maryland Department of Planning: "The Maryland General Assembly, under the Maryland Constitution, adopted new state legislative districts on February 1, 2022, based on the changes in population reported in the 2020 U.S. Census and adjusted in accordance with Maryland's No Representation Without Population Act of 2010."

Usage

md_senate_districts_2022

Format

A data frame with 47 rows and 5 variables:

name

District name

id

District number

label

District label

pop

Population from 2020 U.S. Census

geometry

District boundary geometry

Source

2022 Maryland Legislative Districts


Maryland Water (area)

Description

Detailed multipolygon data for streams, lakes, and other water in the state of Maryland downloaded from the U.S. Census Bureau with the tigris::area_water function. Updated 2024-10-29.

Usage

md_water

Format

A data frame with 14,970 rows and 9 variables:

ansicode

character ANSI code

hydroid

character Hydroid

fullname

character Full name

mtfcc

character MAF/TIGER Feature Class Code

aland

double Land area

awater

double Water area

intptlat

character Interior latitude point

intptlon

character Interior longitude point

geometry

list Multipolygon geometry

Source

https://data.imap.maryland.gov/datasets/maryland-waterbodies-rivers-and-streams-detailed


Maryland Zip Code Tabulation Areas (ZCTA) - 2020

Description

ZIP Code Tabulation Areas (ZCTAs) are generalized areal representations of United States Postal Service (USPS) ZIP Code service areas downloaded using the tigris::zctas() function. Updated 2024-10-29.

Usage

md_zctas

Format

A data frame with 478 rows and 10 variables:

zcta5ce20

ZCTA identifier

geoid20

ZCTA GeoID

classfp20

FIPS class code

mtfcc20

MAF/TIGER Feature Class Code (MTFCC)

funcstat20

Functional status

aland20

Land area (square meters)

awater20

Water area (square meters)

intptlat20

Latitude of the internal point

intptlon20

Longitude of the internal point

geometry

Multipolygon with the ZCTA boundary

Source

https://www.census.gov/programs-surveys/geography/guidance/geo-areas/zctas.html


Maryland Zoning District information

Description

An incomplete index of zoning district names and categories for Maryland counties and local jurisdictions. Updated based on this Google Sheet: https://docs.google.com/spreadsheets/d/1qu8s3W9tvtMPvqLNpzrxqybqPSnl67aBBItSWRgbdto/edit?usp=sharing

Usage

md_zoning_info

Format

A data frame with 112 rows and 15 variables:

zoning

Zoning (no hyphenation)

zoning_alt

Zoning (hyphenation)

name

Zoning district name

category

Zoning district category

district_type

Zoning district type

jurisdiction

Zoning jurisdiction

county

County

description

Description

year

Year active

lot_size_restriction

Numeric value of lot size restriction (if provided)

lot_size_units

Units for lot size restriction value

article

Article (for reference to code or ordinance)

page_num

Page number (for reference to code or ordinance)

overlay

Overlay district

repealed

Repealed zoning district name/type


Maryland Public School Enrollment (SY 2003-2022)

Description

Enrollment data from the Maryland State Department of Education (MSDE). This data is copied from the marylandedu R data package. Refer to that package for more detailed documentation. Variable definitions are based on the definitions from the MSDE website.

Usage

msde_enrollment

Format

A data frame with 219,741 rows and 10 variables:

year

School or academic year for enrollment count, e.g. 2019 data is from the start of the 2019-2020 school year.

school_number

School number as integer (0 indicates all schools)

school_name

School name

enrolled_count

Number of students registered to attend the school at the start of the year in the grade or grade range as integer. Typically enrollment count is as of September 30.

grade

Grades from Prekindergarden (PK) to Grade 12

grade_range

all elementary school Grades, all middle school grades, all high school grades, or all grades (total enrollment). May also be used as a label for grade.

race

Race/ethnicity. Enrollment by race/ethnicity is only available across all grades for years since 2020. "All" is used for data prior to 2020.

date_created

Date record created.

lss_number

Local school system (LSS) number as integer. NA is used in place of a LSS number for statewide data. Older LEA numbers are combined with LSS numbers in this dataset.

lss_name

Local school system (LSS) names (typically same as county name). "State" is used in place of a LSS name for statewide data. Older LEA names are combined with LSS names in this dataset.

Source

MSDE Data Downloads


Maryland Real Property Assessments (fields reference)

Description

Maryland Real Property Assessments (fields reference)

Usage

real_property_cols

Format

A data frame with 223 rows and 6 variables:

field_order

Field order

field_name

Field name

data_type

Data type

mdp_field_name

Maryland Department of Planning (MDP) Field name

api_field_name

Maryland Open Data portal API field name

sdat_field_number

State Department of Assessments and Taxation (SDAT) field number

Source

https://opendata.maryland.gov/Business-and-Economy/Maryland-Real-Property-Assessments-Fields-Referenc/w8th-47fz/data


Set options for mapmaryland package

Description

Currently only used for mapmaryland.crs

Usage

set_mapmaryland_options(crs = NULL, overwrite = TRUE)

Arguments

crs

Coordinate reference system to set, e.g. "crs = 2804" to set "mapmaryland.crs" to 2804.

overwrite

If TRUE, overwrite any existing option value.


U.S. States (near Maryland)

Description

U.S. states bordering Maryland or in close proximity. Updated 2024-10-29.

Usage

us_states_near_md

Format

A data frame with 7 rows and 15 variables:

region

character Region ID

division

character Division ID

statefp

2-character state FIPS code

statens

character State National Standard (NS) identifier using U.S. Geological Survey’s Geographic Names Information System (GNIS) code

geoid

character GeoID

stusps

character State U.S. Postal Service abbreviation

name

character State name

lsad

Legal/statistical area description (LSAD)

mtfcc

MAF/TIGER Feature Class Code (MTFCC)

funcstat

functional status

aland

land area (square meters)

awater

water area (square meters)

intptlat

latitude of the internal point

intptlon

longitude of the internal point

geometry

list Geometry