Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Aug 24, 2022
1 parent 2006a19 commit 6f718a4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions R/slab.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,7 @@
if (length(slab.structure) == 2 && any(ldx, na.rm = TRUE)) {
data <- data[which(!ldx), ]
}

# get number of profiles
n.profiles <- length(unique(data[[idname(object)]]))

# note this is now a vector with length = n.profiles
data$.thkslb <- data[[hzd[2]]] - data[[hzd[1]]]

# maximum depth from the diced result (not source SPC object)--accounts for logic "fixes"
max.d <- aggregate(data$.thkslb, by = list(data[[idname(object)]]), sum, na.rm = TRUE)$x
data$.thkslb <- NULL


# extract site data
site.data <- site(object)

Expand Down

0 comments on commit 6f718a4

Please sign in to comment.