###################################################################
############### Module 6, Basics of data wrangling ################
###################################################################
## Lesson 13, Part 4: Reshaping your data and some other useful functions (species by site matrix)


# First let's load the tidyverse package and the cleaned dataframe
# from the last lesson:
library(tidyverse)
covers_data_all <- read_csv("data/covers_data_all_part3.csv")

###################################
##### THE SPECIES BY SITE MATRIX




###################################
##### SUMMARY
# - Using pivot_wider and as.matrix to create a species X site matrix
# - A quick barplot visualization of summary statistics
# - Using the species X site matrix for a quick ordination visualization

