format_data_PPBstats: Check and format the data to be used by PPBstats functions

Description Usage Arguments Details Author(s)

View source: R/format_data_PPBstats.R

Description

format_data_PPBstats checks and formats the data to be used by PPBstats functions

Usage

1
2
3
format_data_PPBstats(data, type, threshold, network_part = c("unipart",
  "bipart"), network_split = c("germplasm", "relation_year_start"),
  vertex_type = NULL)

Arguments

data

The data frame to format

type

type of format :

  • data_network

  • data_agro

  • data_agro_SR

  • data_agro_HA

  • data_agro_LF

  • data_organo_napping

  • data_organo_hedonic

threshold

For type = data_organo, number of occurence of descriptors <= threshold are kept

network_part

For type = "data_network", element of the network, it can be "unipart" or "bipart"

network_split

For type = "data_network" and network_part = "unipart" and vertex_type = "location", split of the data that can be "germplasm" or "relation_year_start"

vertex_type

For type = "data_network",

  • for unipart network : "seed_lots" or "location"

  • for bipart network : c("germplasm", "location")

Details

See for more details :

Author(s)

Pierre Riviere


priviere/PPBstats documentation built on May 6, 2021, 1:20 a.m.