Prepare the Argo dataset
-
Download the 3D spatial Argo residuals dataset produced by Yarger et al. (2022)1 from this link: 3D spatial Argo residuals. This will download a file named
jan_march_residuals.RData
which contains the 3D spatial Argo residuals saved in anRData
format. -
Open
R
orRStudio
. A typicalRStudio
session looks like this: To keep track ofR
codes and also to prepare them for execution later, open theR Script
window. This can be done by clicking on the 'New File' icon located at the topleft most portion of theRStudio
window. Click on the 'R Script' option. TheR Script
window will appear on top of theR Console
window. -
Locate where the
.RData
file was saved.- On a MacBook, this can be done by right-clicking on the file and choosing the 'Get Info' option.
- Another window will appear containing several information about the file. The location and nested folders that contain the file is displayed in 'General -> Where:'.
-
Highlight the location information and right-click on it. A dialog box will appear which you can click to copy the location information and save it as a Pathname (the exact address of the file on the computer). On my computer, the Pathname is
/Users/laisalvana/Downloads
-
Store the Pathname as a variable in
R
. For example, define the variablefilepath
and paste the Pathname. This can be done by running the following codes on theR
console:filepath <- '/Users/laisalvana/Downloads'
1. Yarger, Drew, Stilian Stoev, and Tailen Hsing. "A functional-data approach to the Argo data." The Annals of Applied Statistics 16.1 (2022): 216-246. https://doi.org/10.1214/21-AOAS1477. ↩
2. “Definition.” Merriam-Webster.com Dictionary, Merriam-Webster, https://www.merriam-webster.com/dictionary/definition. Accessed 18 May. 2020. ↩