grapes-times-times-grapes: Multiply/join row records into block records.

%**%R Documentation

Multiply/join row records into block records.

Description

Call rowrecs_to_blocks().

Usage

table %**% transform

Arguments

table

data (data.frame or relop).

transform

a rowrecs_to_blocks_spec.

Value

rowrecs_to_blocks() result.

Examples


d <- wrapr::build_frame(
  "id", "AUC", "R2" |
  1   , 0.7  , 0.4  |
  2   , 0.8  , 0.5  )

transform <- rowrecs_to_blocks_spec(
  wrapr::qchar_frame(
    "measure", "value" |
    "AUC"    , AUC     |
    "R2"     , R2      ),
  recordKeys = "id")

d %**% transform

# identity (in structure)
d %**% transform %//% t(transform)


cdata documentation built on Aug. 20, 2023, 1:06 a.m.