library(knitr) knitr::opts_chunk$set(collapse = TRUE, comment = "#") options(width=120) library(OpenRepGrid)
Sometimes basic descriptive measures for constructs and elements, e.g. mean, standard deviation, are neeeded. To prompt descriptive statistics for the constructs and elements of a grid use the function statsConstructs
and statsElements
. The following measures are returned:
.1
)The following examples are identical for statsElements
. Just replace statsConstructs
by statsElements
in order to analyze elements.
d <- statsConstructs(fbb2003) d
The returned object is a dataframe, so you may access them as usual. E.g. to retrieve the means of the constructs, type
d$mean
statsConstructs(fbb2003, trim = 10)
statsConstructs(fbb2003, index=F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.