# Let's create an unique id for our samples using the function paste() # see ?paste and ?paste0 # Don't forget to use "" for strings CO2copy$uniqueID <- paste0(CO2copy$Plante,"_", CO2copy$Categorie, "_", CO2copy$Traitement) # Observe the results head(CO2copy$uniqueID)