# \donttest{
# Example: build a projoint_data object from the labelled-tibble example
data(exampleData1_labelled_tibble)
att_cols <- c("School Quality", "Violent Crime Rate (Vs National Rate)",
"Racial Composition", "Housing Cost",
"Presidential Vote (2020)",
"Total Daily Driving Time for Commuting and Errands",
"Type of Place")
pj_dat <- make_projoint_data(
.dataframe = exampleData1_labelled_tibble,
.attribute_vars = att_cols,
.id_var = "id",
.task_var = "task",
.profile_var = "profile",
.selected_var = "selected",
.selected_repeated_var = "selected_repeated",
.fill = FALSE
)
class(pj_dat)
# [1] "projoint_data"
# }
Run the code above in your browser using DataLab