read_hip: Read in data

View source: R/read_hip.R

read_hipR Documentation

Read in data

Description

Compile data from state-exported text files by providing a path to the download directory.

Usage

read_hip(path, unique = TRUE, state = NA, season = FALSE, sumlines = FALSE)

Arguments

path

File path to the folder containing HIP .txt files

unique

Return a distinct frame? Defaults to TRUE

state

When specified, reads in download data from a specified state. Must match one of the following two-letter abbreviations:

  • AL, AK, AZ, AR, CA, CO, CT, DE, DC, FL, GA, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VT, VA, WA, WV, WI, WY

season

If set as TRUE, selects only folders starting with "DL" in a a season's upper-level directory

sumlines

If set as TRUE, runs sumLines and returns a list of any files that were not fully read in

Author(s)

Abby Walter, abby_walter@fws.gov

References

https://github.com/USFWS/migbirdHIP


USFWS/migbirdHarvestData documentation built on Nov. 18, 2024, 5:56 a.m.