# Create a data frame mapping raw score ranges to scale scores
df_map <- data.frame(
raw = c("1-5", "6-10"),
scale = c(10, 11)
)
# Elongate the data frame
elongated_df <- map_elongate_df(df_map, "raw", "scale")
print(elongated_df)
Run the code above in your browser using DataLab