Tricot Data Types #9348
lilyclements
started this conversation in
Tricot Analysis
Replies: 1 comment 4 replies
-
From a brief conversation with David, my understanding is that we want to have the data at two levels for display: The first is how we see
The second is a manipulation of this, where we have two variables:
The data manipulation to turn the first into the second:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm seeing two data structures from looking at Vignette 1 and Vignette 2 on
gosset
package. These data sets formats show the same information but in different structures: At the indiviudal level, and at the ID-variety-trait levelTwo Data Structures
Data Structure One:
This data is in long format, at the ID-variety-trait level.
An example of this is the
nicabean
data in thegosset
package. There are two datasets loaded in, this one is thetrial
data.I can see four different "types" of data
Data Structure Two:
This data is in wider format, at the ID level with multiple variables to show the variety and ranking.
An example of this is the
cassava
data in thegosset
packageI can see four different "types" of data
For our "Ranking Variables", we want to run
(with "_pos", "_neg" as the name on the variables which denote whether that trait is ranked high or low).
Handing the Two Data Types
A summary our two vignettes in how they handle each of these data types. Both run a
rank_*
function initially depending on the data type. Note that thisrank_*
is performed for each of the traits, and outputs a list containing elements of type ranking object.For Data Structure One:
Note that
rank_numeric
is run for each of the traits. This outputs a list containing elements of type ranking object.For Data Structure Two:
Note that
rank_tricot
is run for each of the traits. This outputs a list containing elements of type ranking object.Beta Was this translation helpful? Give feedback.
All reactions