Learn R Programming

flowchart (version 1.0.0)

fc_view: fc_view

Description

This function allows you to return either the data stored in $data or the flowchart information stored in $fc.

Usage

fc_view(object, what)

Value

Returns a tibble. Either $data or $fc.

Arguments

object

fc object that we want to access.

what

Choose "data" to return the data associated to the flowchart stored in $data or "fc" to return the flowchart information stored in $fc.

Examples

Run this code
#Return the data associated to the flowchart
safo |>
 as_fc(label = "Patients assessed for eligibility") |>
 fc_filter(!is.na(group), label = "Randomized", show_exc = TRUE) |>
 fc_view("data")

#Return the flowchart information
safo |>
 as_fc(label = "Patients assessed for eligibility") |>
 fc_filter(!is.na(group), label = "Randomized", show_exc = TRUE) |>
 fc_view("fc")

Run the code above in your browser using DataLab