Description Usage Arguments Value Examples
View source: R/matched_powprod.R
Do a batch of power-products on a data frame
1 | matched_powprod(df_weights, df_target)
|
df_weights |
power weights (exponents) |
df_target |
target data frame |
data frame with power-product results
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | df_weights <-
tribble(
~out_name, ~X1, ~X2,
"Y1", 1, 1,
"Y2", 1, -1
)
df_target <-
tibble(
X1 = c( 1, 1, 1, 1),
X2 = c( 2, 3, 4, 5)
)
matched_powprod(df_weights, df_target)
bind_cols(
df_target,
matched_powprod(df_weights, df_target)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.