layout_by.rowrecs_to_blocks_spec: Use transform spec to layout data.

View source: R/opspec.R

layout_by.rowrecs_to_blocks_specR Documentation

Use transform spec to layout data.

Description

Use transform spec to layout data.

Usage

## S3 method for class 'rowrecs_to_blocks_spec'
layout_by(transform, table)

Arguments

transform

object of class rowrecs_to_blocks_spec

table

data.frame or relop.

Value

re-arranged data or data reference (relop).

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")

print(transform)
layout_by(transform, d)


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