Skip to content

Commit

Permalink
Fix 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
mrustl committed Jul 10, 2024
1 parent 568c595 commit 3a46b45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/extend_soil_profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ extend_soil_profile <- function(df, x_end) {
combined_df <- if(shorten_profile) {
dplyr::bind_rows(df, new_df)
} else {
new_df <- new_df[-1,]
new_df$node_id <- new_df$node_id - 1
dplyr::bind_rows(df, new_df[-1,])
}
sorted_df <- dplyr::arrange(combined_df, node_id)
Expand Down

0 comments on commit 3a46b45

Please sign in to comment.