Skip to contents

view_plate_names() returns the names of all plates in the input file as a character vector. If names are empty or duplicated, it emits an informational message and returns the names. If both issues occur, it throws an error.

Usage

view_plate_names(file, sheet = 1)

Arguments

file

This is the path to an XLS, XLSX or CSV file containing data for the following types of plates: 6, 12, 24, 48, 96, 384, and 1536.

sheet

If file type is xlsx this is the sheet name (character) or number (integer).

Value

A character vector

Details

Name diagnostics identify the plate and imported cell address. Empty or duplicate names alone are informational; both together are an error.

Examples

file_path <- system.file("extdata", "example_12_well.xlsx", package = "tidyplate")

data_12 <- view_plate_names(file = file_path)

data_12
#> [1] "drug"             "cell_line"        "percent_survived"