Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ncss-tech/aqp
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbeaudette committed Jan 31, 2024
2 parents 05cac85 + 30002b5 commit 01515bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/flagOverlappingHz.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ flagOverlappingHz <- function(x) {
## TODO: tests required
# index affected horizons
.m <- outer(.ot, .tops, '==')
idx <- as.vector(apply(.m, 1, which))
idx <- unlist(as.vector(apply(.m, 1, which)))

# generate flag vector along sequence of horizons
.res <- rep(FALSE, times = length(.tops))
Expand Down
5 changes: 2 additions & 3 deletions R/texture.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ texcl_to_ssc <- function(texcl = NULL, clay = NULL, sample = FALSE) {
}) ->.;
do.call("rbind", .) -> df
df$silt <- 100 - df$clay - df$sand
row.names(df) <- NULL
}


Expand All @@ -256,12 +255,12 @@ texcl_to_ssc <- function(texcl = NULL, clay = NULL, sample = FALSE) {
df <- df[(order(as.integer(df$rn))), vars]
df$rn <- NULL
df$texcl <- NULL

rownames(df) <- NULL
return(df)
}

#' Convert sand, silt and clay to texture class
#' @param simplify Passed to `SoilTextureLevels()` to set the nu mber of possible texture classes. If `TRUE`, the ordered factor has a maximum of 12 levels, if `FALSE` (default) the ordered factor has a maximum of 21 levels (including e.g. very fine/fine/coarse variants)
#' @param simplify Passed to `SoilTextureLevels()` to set the number of possible texture classes. If `TRUE`, the ordered factor has a maximum of 12 levels, if `FALSE` (default) the ordered factor has a maximum of 21 levels (including e.g. very fine/fine/coarse variants)
#' @rdname texture
#' @return - `ssc_to_texcl`: A `character` vector containing texture class
#' @export
Expand Down
2 changes: 1 addition & 1 deletion man/texture.Rd

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

0 comments on commit 01515bf

Please sign in to comment.