Lab 1: Popular Computer Software for Biostatistics and Introduction to Descriptive Statistics Flashcards
What is R Studio?
An IDE or an Integrated Development Environment for R itself, which comes with a code editor and debugger (kind of like putting clothes on a “naked” software)
What must be installed first in order for both programs to work? R or R Studio?
R itself must be installed first, and then R Studio can be installed.
In the lab manuals, what are the bolded phrases?
The actual R command/code lines
In the lab manuals, what are the blue phrases following a “#”?
Notes
In the lab manuals, what are the red phrases?
The R results that should directly follow the R command/code lines
What is the working directory?
It is where all of your work is directly processed in R, where you store files for R to retrieve from, and where any files you created/ generated in R will be saved by default
What is another good way to think of your directory as?
As your working bench in a biomedical research lab
When setting your working directory on a PC, what does each aspect of this code mean: >setwd(“C:/R:) ?
- setwd( ) is the function in R to set the working directory
- (“C:/R”) in the brackets is what this function acts on
- C:/R is the path for the R folder AKA the folder you’re designating as the working directory
Is the function/ R-built tool you type in the command line case- sensitive?
YES!
Does the device you’re using (PC vs Mac), impact the way in which you type the command line to set the working directory?
YES! It would be different!
The command line “>setwd(“/Users/angsun/Desktop/R”) would be used for what kind of device and what is everything before the /R in the brackets called?
A Mac and its called the path
Is the path for your R folder on your Mac going to be the same as another person’s?
NO!
The working directory can be set in two ways on a Mac. What are these two ways?
By using command lines and my just clicking
What always before “
An object!
What does each aspect of this code mean: >a
a: The object
All objects are followed by what?
An arrow pointing toward them
Anything followed by brackets is a what?
Function
What is another way to write the numbers in the data set in this code: >a
a