The R Script
Now that we have learned how to organize and format data using R functions, we are now ready to perform calculations and data analysis. We do this with what is called R script. In the final video presentation of this eLesson, we will demonstrate how to perform the correlation coefficient calculation using a few rows from Sarah's data set.
Complete this next exercise to practice this technique and make sure you are understanding R scripting correctly.
Use the following data files from Sarah's experiment:
Click here to download reflectance data
Click here to download related yield data
Calculate the Correlation Coefficient between the Water Index (WI) and the Adjusted Yield based upon these data files.