Description Usage Arguments Details Value Author(s) See Also Examples
is.get.data.output
check if data set can be used as entry for get.ggplot
and get.table
.
This is useful when the user do not have SHiNeMaS but wish to use the other functions of the package.
1 | is.get.data.output(data, shinemas2R.object = "network")
|
data |
the date set to check |
shinemas2R.object |
The type of shinemas2R.object to check. Possible values are:
|
Formats of the different shinemas2R.object:
"network" It must be a list of four elements: "network", "network.query", "network.info" and "Mdist" (see get.data
for more details) with the followinf format:
"network" must be a network object. It can be NULL. Vertex attributes can be put on "year", "person", "germplasm", germplasm.type" and "sex". Edge attributes can be put on "relation" and "generation"
"network.query" must be a dataframe. It can be NULL. It has the following columns: son_species, son_project, son, son_germplasm, son_person, son_year, son_germplasm_type which are factors, son_alt, son_long, son_lat, son_total_generation_nb, son_local_generation_nb which are numerics, son_generation_confidence, son_comments which are characters,father_species, father_project, son, father_germplasm, father_person, father_year, father_germplasm_type which are factors, father_alt, father_long, father_lat, father_total_generation_nb, father_local_generation_nb which are numerics, father_generation_confidence, father_comments which are characters, reproduction_id which is character, reproduction_method_name, is_male, block which are factors, selection_id which is character, selection_person which is factor, mixture_id, diffusion_id which are character, relation_year_start, relation_year_end which are factors.
"network.info" must be a dataframe. It can be NULL. It has the following columns: sl, which is a character; alt, long and lat which are numeric; diffusion, id.diff, reproduction, mixture, cross.info, germplasm, person and year, which are factor. Possible values for diffusion are for EN: "give", "receive", "give-receive" or NA. Possible values for reproduction are for EN: "sow", "harvest", "harvest-sow" or NA. Possible values for selection are for EN: selection or NA. Possible values for mixture are for EN: mixture or NA.
"Mdist" must be a square matrix with the same columns and rows names.
"data-classic-seed-lots"
"data-classic-relation"
"data-S-seed-lots"
"data-S-relation"
"data-SR-seed-lots"
"data-SR-relation"
The function returns a data set with the corresponding shinemas2R.object attributes or an error.
Pierre Riviere
encrypt.data
, translate.data
,, format.data
, get.ggplot
, get.table
1 | # See the vignette and appendix D
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.