as_field_book_table: Field Book Tables

Description Usage Arguments Details Value Functions

View source: R/field_book_table.R

Description

Creates/checks data.frame objects for Field Book Table format.

Reads in data from a Field Book Table as a fbt object.

Usage

1
2
3
4
5
6
as_field_book_table(fbt, unique.id = "plot_id", row = "row",
  column = "column", line.name = "line_name", other.cols = NULL,
  check.names = TRUE)

read_fb(file, unique.id = "plot_id", row = "row", column = "column",
  line.name = "line_name", other.cols = NULL, check.names = TRUE)

Arguments

fbt

A Field Book Table object or an object to convert into a Field Book Table object.

unique.id

The column name of the Field Book data frame that corresponds to the unique identification of each entry in the data table. Defaults to 'plot_id.'

row

The column name of the Field Book data frame that corresponds to the row of each entry in the data table. Defaults to 'row.'

column

The column name of the Field Book data frame that corresponds to the column of each entry in the data table. Defaults to 'column.'

line.name

The column name of the Field Book data frame that corresponds to the column of each entry name in the data table. Defaults to 'line.name.'

other.cols

A character vector of other non-trait columns.

check.names

Logical whether the column names should be checked for proper formatting.

file

The path to the Field Book Table .csv to be read in.

Details

as_field_book_table converts data to a data.frame object with formatting consistent with the Field Book Table.

A Field Book Table is a .csv file obtained by exporting data from the Field Book app (http://wheatgenetics.org/field-book). See the app manual for instructions for exporting data. To export a Field Book Table file, one must check the "Table" format and the "All Important Columns" boxes when exporting. Data from a Field Book Table file will have at least three required columns: a unique identifier, the row, and the column. Remaining columns can include other variables.

Value

An object of class data.frame with formatting consistent with Field Book Table.

Functions


neyhartj/fbutils documentation built on Feb. 10, 2020, 1:45 p.m.