This function creates a mtoolr object from a data frame parsed from MTool output. This function is useful if you want to process exported data from MTool before passing it to MToolR. The safest and easiest way to import MTool data directly is to use the `mentalmodel_from_csv()` function however.
Arguments
- x
An object to be converted to a mtoolr object for further analysis. Likely a data frame with at least User_ID, To, From and Weight columns specifying mental model edges by user.
- aggregated
Is the object an aggregated model? Defaults to FALSE.
Examples
minimal_df <- data.frame(User_ID = c("User1"), To = c("Concept1"), From = c("Concept2"), Weight = c(2))
mentalmodel(minimal_df)
#> # A tibble: 1 × 4
#> User_ID To From Weight
#> <chr> <chr> <chr> <dbl>
#> 1 User1 Concept1 Concept2 2
#> # A tibble: 1 × 1
#> id
#> <chr>
#> 1 User1