View source: R/createStatementOverview.R
createStatementOverview | R Documentation |
This function generates an overview of all unique statements in a given concept mapping dataset. The function assigns a unique statement number to each distinct statement and returns a summary data frame.
createStatementOverview(CMData)
CMData |
A data frame containing concept map data. This must include a column named |
The function first checks if the provided dataset is suitable for concept mapping using the
checkConceptMapData
function. If the data is valid, it assigns a numeric statement number
to each distinct statement, ordered by their appearance in the dataset. The function then generates
an overview where each statement is paired with its corresponding statement number.
A data frame with two columns: StatementNumber
and Statement
.
Each row represents a unique statement with its corresponding number.
# Example of valid data
CMData <- data.frame(
sorterID = c("resp1", "resp1", "resp1", "resp2",
"resp2", "resp2", "resp3", "resp3", "resp3"),
statement = c("London", "Frankfurt", "Berlin", "London",
"Frankfurt", "Berlin", "London", "Frankfurt", "Berlin"),
stackID = c("capital city", "city", "capital city", 1, 2, 2, "A", "B", "A")
)
# Create an overview of the statements
createStatementOverview(CMData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.