Create INDEX

The index() can be used to subset on a the dataset using the if statement.