2.2 Read data

Load the amphorae dataset:

data(amphorae)

Or, alternatively, your own dataset (e.g., CSV):

dt <- cbind(read.csv(paste(directories$data,
                           "petrographic_data.csv",sep="/"),
                     # assuming the first column contains row names
                     row.names=1), 
            read.csv(paste(directories$data,
                           "geochemical_data.csv",sep="/"),
                     # assuming the first column contains row names
                     row.names=1)) 

Note that if you use your own dataset you must replace all references to “amphorae” with your data frame name (e.g. “dt”).