as_instruction: Converts objects into instruction

Description Usage Arguments Details

View source: R/instruction.R

Description

as_instruction parses a named list or vector as a chewie_instruction object

Usage

1
2
3
4
as_instruction(x)

## S3 method for class 'list'
as_instruction(x)

Arguments

x

an object generated by list()

Details

The function helps users and internal functions to deal with object conversions into chewie_instruction class. As the package currently views data.frame type of objects (later transformed into chewie_scheme objects) as the main target of user experience, rows should be parsed as instructions above all else.


leonardodiegues/chewie documentation built on Dec. 21, 2021, 10:41 a.m.