Skip to contents

Read experimental design from CSV or Excel

Usage

cr_read_design(path)

Arguments

path

Path to file. .csv, .tsv and .xlsx are supported.

Value

A tibble of design information.

Examples

f <- tempfile(fileext = ".csv")
utils::write.csv(
  data.frame(well = c("A01", "A02"), treatment = c("Vehicle", "CompoundA")),
  f, row.names = FALSE
)
cr_read_design(f)
#> # A tibble: 2 × 2
#>   well  treatment
#>   <chr> <chr>    
#> 1 A01   Vehicle  
#> 2 A02   CompoundA