Skip to content

Commit 6c095c4

Browse files
Update ST-tree.R
1 parent 27fdb36 commit 6c095c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/ST-tree.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ data('ST', package = 'SoilTaxonomy')
1414

1515
## this is the most detailed acreage accounting
1616
# subgroup acreages from SoilWeb / SSURGO
17-
sg.ac <- read.table(file='databases/taxsubgrp-stats.txt.gz', header = FALSE, sep="|")
17+
sg.ac <- read.table(file = '../SoilWeb-data/files/taxsubgrp-stats.txt.gz', header = FALSE, sep="|")
1818
names(sg.ac) <- c('subgroup', 'ac', 'n_polygons')
1919

2020
# normalize names
2121
sg.ac$subgroup <- tolower(sg.ac$subgroup)
2222

2323
# LEFT JOIN to acreage
24-
ST <- merge(ST, sg.ac, by='subgroup', all.x=TRUE)
24+
ST <- merge(ST, sg.ac, by = 'subgroup', all.x = TRUE)
2525

2626
# set NA acreage to 0
2727
ST$ac[which(is.na(ST$ac))] <- 0

0 commit comments

Comments
 (0)