Tag: R function to recreate data frame