extract_elements: Extract elements from excel files

Description Usage Arguments Details Examples

View source: R/plate_elements.R

Description

Extract OD data, layout and ID tables from an excel file. Returns a list containing the plates as a matrix and the ID tables as 'data.frame'.

Usage

1
extract_elements(path, sheet = 1, na = "")

Arguments

path

vector containing the path(s) to the input file(s)

sheet

Sheet to read. Either a string (the name of a sheet), or an integer (the position of the sheet) (See 'readxl::read_excel' help page).

na

Character vector of strings to use for missing values. (See 'readxl::read_excel' help page)

Details

Example on how to prepare the excel file can be found at https://github.com/koncina/elisar.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(elisar)

# Import file(s)
example_file <- system.file("extdata", "example.xls", package="elisar")
extract_elements(example_file, 1)
extract_elements(example_file, 2)

## End(Not run)

koncina/elisar documentation built on May 20, 2019, 12:55 p.m.