get.table: Get table from 'get.data'

Description Usage Arguments Value Author(s) See Also Examples

Description

get.table generates tables object from get.data data-set or ggplot.objet from get.ggplot.

Usage

1
2
3
4
5
get.table(data, correlated_group = NULL, merge_g_and_s = FALSE,
  table.type = NULL, table.on = "son", vec_variables = NULL,
  nb_row = NULL, nb_col = NULL, nb_duplicated_rows = 10,
  col_to_display = c("person", "germplasm", "year", "block", "X", "Y"),
  invert_row_col = FALSE)

Arguments

data

It can be either output from get.data or ggplot.object from get.ggplot.

correlated_group

Name of the group of correlation in data. NULL by default meaning that shinemas2R::get.data()$data$data is taken.

merge_g_and_s

Fuse germplasm and selection name information in a column named germplasm. TRUE by default.

table.type

The type of table you wish according to the type of data. For data coming from get.data, it can be:

  • "raw" display raw data. Useful with text for example

  • "mean" display for each variable columns with mean

  • "mean.sd" display for each variable columns with mean and standard deviation

  • "mean.sd.cv" display for each variable columns with mean, standard deviation and coefficient of variation

  • "summary" display "Min.", "1st Qu.", "Median", "3rd Qu.", "Max." of the data

table.on

For "data-" type. father" or "son" depending on which seed-lot you want to display.

vec_variables

Vector of variables displayed

nb_row

The number of rows in the table

nb_col

The number of columns in the table. col_to_display remains fixed.

nb_duplicated_rows

Minimum number of duplicated rows for each variable of a table up to which the information is put in only one row.

col_to_display

Columns to display in the table. It can be a vector with "person", "germplasm", "year", "block", "X" and "Y". If NULL, none of these columns are displayed. The variables follow these columns. For data-S and data-SR type, the column "expe" and "sl_statut" are added by default.

invert_row_col

If TRUE, invert row and col in the table. This is possible only for col_to_display = NULL.

Value

The function returns a list with two elements

Author(s)

Pierre Riviere

See Also

get.data, get.ggplot

Examples

1
# See the vignette

priviere/shinemas2R_deprecated documentation built on May 8, 2019, 1:21 p.m.