# Make an interface with metadata, e.g. type.
interface <- tag_add(list(foo = c(), bar = c()), list(type = "structure"))
# Combine data and the metadata from the interface.
populate(list(foo = 1, bar = 2), interface)
Run the code above in your browser using DataLab