-
Notifications
You must be signed in to change notification settings - Fork 1
RStudio tips
A comment is a line of code that is not run.
You add the #
sign in front of the code you want to comment.
You can also use this tool to add notes to your code (highly recommended), so others can follow your code.
The #
sign can be added at the beginning of the line, or anywhere in the line -- in all cases, code after the #
sign will not be run.
example:
print("aaa") # THIS PART WILL NOT BE RUN
Start the line with the #
sign and end with four or more dashes (-
) or pounds (#
)
Alternatively, use Code
> Insert Section...
.
examples:
# SECTION 1 ----
# SECTION 2 ####
## SECTION A -----------------
When using code with multiple, nested brackets, you can move the cursor to the close-bracket to find its match. Use this to make sure the brackets are in the right place.



interesting custom footer
-
Before you begin
-
Basics
-
Exploring your data
-
Statistics
- univariate statistics (ANOVA, LME)
- multivariate statistics (PCA)
-
Data visualization
-
ggplot2: the Grammar of Graphics
- ggplot basics
- formatting legends
- working with scales
- specific examples
- ggplot practice
-
ggplot2: the Grammar of Graphics
-
Data processing and cleaning
-
tidyverse
- using pipes
- {dplyr} I: basics
- {dplyr} II
- working with strings
-
tidyverse
-
Functions
- making your own functions
-
GitHub
- GitHub tokens
- using GitHub
-
Workflows