For example I have a data frame...
pet_data <- data.frame(
pet = c("dog", "cat", "monkey"),
name = c("fido", "garfield", "george"),
color = c("black", "orange", "brown")
)
...and I want a fourth column that at each row contains a list of the other values in that row. So the first entry in the fourth column would be a list containing "dog", "fido", and "black", the second entry in the column would be a list containing "cat", "garfield", "orange", etc.
Thanks!