Skip to content

Commit

Permalink
add material loss info to facilities file
Browse files Browse the repository at this point in the history
  • Loading branch information
fawda123 committed Jun 11, 2024
1 parent e820874 commit 6a4c374
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/facilities.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Domestic and industrial point source facilities
#' Domestic and industrial point source facilities, including industrial with material losses
#'
#' @format A \code{data.frame}
#'
Expand Down
18 changes: 16 additions & 2 deletions data-raw/facilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,22 @@ dpsfac <- dpsfac |>
)
)

# combine ips dps
facilities <- bind_rows(ipsfac, dpsfac) |>
# add ips material loss
ipsmat <- tribble(
~bayseg, ~basin, ~entity, ~facname, ~source, ~entityshr, ~facnameshr, ~permit, ~facid,
2, NA_character_, 'CSX', 'Rockport', 'PS - Industrial - Material Losses', 'csx', 'rock', NA_character_, NA_character_,
2, NA_character_, 'CSX', 'Newport', 'PS - Industrial - Material Losses', 'csx', 'newp', NA_character_, NA_character_,
2, NA_character_, 'Mosaic', 'Tampa Marine', 'PS - Industrial - Material Losses', 'mosaic', 'tampamar', NA_character_, NA_character_,
2, NA_character_, 'Mosaic', 'Big Bend', 'PS - Industrial - Material Losses', 'mosaic', 'bigbend', NA_character_, NA_character_,
2, NA_character_, 'Mosaic', 'Riverview', 'PS - Industrial - Material Losses', 'mosaic', 'riverview', NA_character_, NA_character_,
2, NA_character_, 'Kinder Morgan', 'Kinder Morgan Tampaplex', 'PS - Industrial - Material Losses', 'kinder', 'tampaplex', NA_character_, NA_character_,
2, NA_character_, 'Kinder Morgan', 'Kinder Morgan Port Sutton', 'PS - Industrial - Material Losses', 'kinder', 'portsutt', NA_character_, NA_character_,
4, NA_character_, 'Kinder Morgan', 'Kinder Morgan Port Manatee', 'PS - Industrial - Material Losses', 'kinder', 'portmana', NA_character_, NA_character_,
)


# combine ips dps ipsmat
facilities <- bind_rows(ipsfac, dpsfac, ipsmat) |>
arrange(entity, facname)

usethis::use_data(facilities, overwrite = TRUE)
Binary file modified data/facilities.rda
Binary file not shown.
4 changes: 2 additions & 2 deletions man/facilities.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a4c374

Please sign in to comment.