Skip to content

Commit

Permalink
texcl_to_ssc: fix row names
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Jan 31, 2024
1 parent 7fa12b6 commit 9bd9005
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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 9bd9005

Please sign in to comment.