layout_by.blocks_to_rowrecs_spec | R Documentation |
Use transform spec to layout data.
## S3 method for class 'blocks_to_rowrecs_spec'
layout_by(transform, table)
transform |
object of class blocks_to_rowrecs_spec. |
table |
data.frame or relop. |
re-arranged data or data reference (relop).
d <- wrapr::build_frame(
"id", "measure", "value" |
1 , "AUC" , 0.7 |
1 , "R2" , 0.4 |
2 , "AUC" , 0.8 |
2 , "R2" , 0.5 )
transform <- blocks_to_rowrecs_spec(
wrapr::qchar_frame(
"measure", "value" |
"AUC" , AUC |
"R2" , R2 ),
recordKeys = "id")
print(transform)
layout_by(transform, d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.