Skip to content

Commit

Permalink
fix for #320
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Dec 5, 2024
1 parent 9a36240 commit a023abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/segment.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ hz_segment <- function(object, intervals, trim = TRUE, depthcols = c("top", "bot
h <- h[order(h$idcol, h[[depthcols[1]]]), ]

# merge to re-add spc with NA
h_orig <- data.frame(idcol = names(table(horizons(object)[idcol])), stringsAsFactors = FALSE)
h_orig <- data.frame(idcol = names(table(.data.frame.j(horizons(object), idcol, use_class = aqp_df_class(object)))), stringsAsFactors = FALSE)
h <- merge(h_orig, h, by = "idcol", all.x = TRUE, sort = FALSE)
rm(h_orig)

Expand Down

0 comments on commit a023abb

Please sign in to comment.