| to_ScoringTable | R Documentation |
ScoringTable is a simple version of ScoreTable() or GroupedScoreTable(),
that don't include the FrequencyTable internally. It can be easily
saved to csv or json using export_ScoringTable() and loaded from these
files using import_ScoringTable().
When using GroupedScoreTable, the columns will be named the same as the
name of group. If it was created using two GroupCondition object, the names
of columns will be names of the groups seperated by :
to_ScoringTable(table, ...) ## S3 method for class 'ScoreTable' to_ScoringTable( table, scale = NULL, min_raw = NULL, max_raw = NULL, score_colname = "Score", ... ) ## S3 method for class 'GroupedScoreTable' to_ScoringTable(table, scale = NULL, min_raw = NULL, max_raw = NULL, ...) ## S3 method for class 'ScoringTable' summary(object, ...)
table |
|
... |
further arguments passed to or from other methods. |
scale |
name of the scale attached in |
min_raw, max_raw |
absolute minimum/maximum score that can be received.
If left as default |
score_colname |
Name of the column containing the raw scores |
object |
|
ScoringTable object
Extr_ST <-
# create FrequencyTable
FrequencyTable(data = IPIP_NEO_300$E) |>
# create ScoreTable
ScoreTable(scale = STEN) |>
# and transform into ScoringTable
to_ScoringTable(
min_raw = 60,
max_raw = 300
)
summary(Extr_ST)
#### GroupConditions creation ####
sex_grouping <- GroupConditions(
conditions_category = "Sex",
"Male" ~ sex == "M",
"Female" ~ sex == "F"
)
#### Creating ScoringTable ####
## based on grouped data ##
Neu_ST <-
# create FrequencyTable
GroupedFrequencyTable(
data = IPIP_NEO_300,
conditions = sex_grouping,
var = "N") |>
# create ScoreTable
GroupedScoreTable(
scale = STEN) |>
# and transform into ScoringTable
to_ScoringTable(
min_raw = 60,
max_raw = 300
)
summary(Neu_ST)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.