Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
drop names from evals, rename variables
  • Loading branch information
fabian-s committed Feb 14, 2024
1 parent ff91f79 commit c7e351c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions R/summarize.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ summarize_tf <- function(..., op = NULL, eval = FALSE) {
op_call <- function(x) do.call(op, c(list(x), op_args))
funs <- do.call(c, funs)
# setting interpolate = TRUE would return more useful results for tfd_irreg
# not done here for transparency reasons.
# - not done here for transparency reasons.
m <- suppressWarnings(as.matrix(funs))
ret <- apply(m, 2, op_call)
arg <- as.numeric(colnames(m))
args <- c(list(ret),
arg = list(arg),
value <- apply(m, 2, op_call) |> unname() |> list()
args <- c(value,
arg = list(attr(m, "arg")),
domain = list(tf_domain(funs)),
resolution = attr(funs, "resolution")
)
Expand Down

0 comments on commit c7e351c

Please sign in to comment.