@@ -37,7 +37,7 @@ extractSMR <- function(taxon, as.is = FALSE, droplevels = FALSE, ordered = TRUE)
37
37
co <- .get_SMR_element_connotation()
38
38
39
39
# only consider SMR formative elements at or below taxon level
40
- el $ defs <- el $ defs [el $ defs $ element %in% co $ element & th < = el $ defs $ level ,]
40
+ el $ defs <- el $ defs [el $ defs $ element %in% co $ element & th < = el $ defs $ level , ]
41
41
42
42
# THEN get highest level taxon SMR connotation
43
43
co <- co [co $ element %in% el $ defs $ element &
@@ -51,11 +51,18 @@ extractSMR <- function(taxon, as.is = FALSE, droplevels = FALSE, ordered = TRUE)
51
51
}
52
52
53
53
.get_SMR_element_connotation <- function () {
54
- # x <- get_ST_formative_elements()
55
- # x[grepl("SMR|wetness", x$connotation) & x$level != "subgroup",][c("element","level")]
56
54
# # NB: currently there is no formative element connotation for "peraquic" soils
57
- data.frame (element = c(" per" , " ids" , " aqu" , " torr" , " ud" , " ust" , " xer" , " torri" , " ud" , " ust" , " xer" , " aqu" ),
58
- level = c(" suborder" , " order" , " suborder" , " suborder" , " suborder" , " suborder" , " suborder" , " greatgroup" , " greatgroup" , " greatgroup" , " greatgroup" , " greatgroup" ),
59
- connotation = c(" perudic" , " aridic (torric)" , " aquic" , " aridic (torric)" , " udic" , " ustic" , " xeric" , " aridic (torric)" , " udic" , " ustic" , " xeric" , " aquic" ),
55
+ data.frame (element = c(" per" , " ids" , " aqu" , " torr" , " ud" ,
56
+ " ust" , " xer" , " torri" , " ud" , " ust" ,
57
+ " xer" , " aqu" , " udic" , " ustic" , " xeric" ,
58
+ " aquic" ),
59
+ level = c(" suborder" , " order" , " suborder" , " suborder" , " suborder" ,
60
+ " suborder" , " suborder" , " greatgroup" , " greatgroup" , " greatgroup" ,
61
+ " greatgroup" , " greatgroup" , " subgroup" , " subgroup" , " subgroup" ,
62
+ " subgroup" ),
63
+ connotation = c(" perudic" , " aridic (torric)" , " aquic" , " aridic (torric)" , " udic" ,
64
+ " ustic" , " xeric" , " aridic (torric)" , " udic" , " ustic" ,
65
+ " xeric" , " aquic" , " udic" , " ustic" , " xeric" ,
66
+ " aquic" ),
60
67
stringsAsFactors = FALSE )
61
68
}
0 commit comments