wg2ws_items | R Documentation |
Given a list of items, create a table of category scores
wg2ws_items(items, error_on_missing = TRUE, in_inside = "either")
items |
List of WG items present for individual. |
error_on_missing |
If TRUE, check whether all items are actual WG
items. See helper function |
in_inside |
"In" and "inside" appear as two items on WG, but one ("inside/in") on WS. If "either," treat "inside/in" as endorsed if either appears. For "both", both must be endorsed. For "in" or "inside", treat "inside/in" as endorsed based solely on the presence of the indicated item. |
Requires a list that exactly matches items as labeled from Wordbank
(check g_dict). Converts to a table of category scores, ready for use
with wg2ws_category_score()
.
A data frame with 22 rows indicating item totals for all WS
categories. These values are not adjusted, and need to be adjusted with
wg2ws_category_score()
.
# Create list of words a child knows
words <- c("smile", "old", "chicken (animal)", "breakfast", "snow", "uh oh",
"please", "bad", "bicycle", "moon")
# Create table
categories <- wg2ws_items(words)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.