-
Notifications
You must be signed in to change notification settings - Fork 4
Overview of Analysis in R
This page defines my data analysis goals and provides guidelines for how these are are implemented, specifically in R-Studio. It is a description of file structure of data and analysis scripts, as well as my workflow in R-Studio. For a light intro, see Guide to R/R-Studio.
Folders
_original_data - .csv, .xlsx, .emerge files for visual inspection and r.
archive_content - Historical r scripts, coding, and data structures.
Files
.Rproj - Open this first.
name_analysis.r - Open this within R-Studio (within the project environment).
name_data.rda - data file to be used with the analysis.R file.
name_data_structures.R - file used to generate cleaned data structures (.rda files). Dependents: .csv files in _original_data
- Open (double-click) the .Rproj file. If it opens in R-Studio, it should set the working directory to the current folder.
- In R-Studio, navigate to the File tab on the bottom-right panel (default position). Open name_analysis.r from here.
- Run the code from this .r script through the library-loading, and data structure loading commands. Something like this:
library("ddply")
library("lmSupport")
# Here are some notes about what this script does.
load("datastructure.rda")- Run lines of analyses.
Home | Overview | Expectations