We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27fdb36 commit 6c095c4Copy full SHA for 6c095c4
misc/ST-tree.R
@@ -14,14 +14,14 @@ data('ST', package = 'SoilTaxonomy')
14
15
## this is the most detailed acreage accounting
16
# subgroup acreages from SoilWeb / SSURGO
17
-sg.ac <- read.table(file='databases/taxsubgrp-stats.txt.gz', header = FALSE, sep="|")
+sg.ac <- read.table(file = '../SoilWeb-data/files/taxsubgrp-stats.txt.gz', header = FALSE, sep="|")
18
names(sg.ac) <- c('subgroup', 'ac', 'n_polygons')
19
20
# normalize names
21
sg.ac$subgroup <- tolower(sg.ac$subgroup)
22
23
# LEFT JOIN to acreage
24
-ST <- merge(ST, sg.ac, by='subgroup', all.x=TRUE)
+ST <- merge(ST, sg.ac, by = 'subgroup', all.x = TRUE)
25
26
# set NA acreage to 0
27
ST$ac[which(is.na(ST$ac))] <- 0
0 commit comments