Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add search engine tip address #265 #267

Merged
merged 4 commits into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions episodes/00-introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ called an **RStudio Project**. An RStudio project allows you to more easily:
- Restart work where you left off
- Collaborate, especially if you are using version control such as [git](https://swcarpentry.github.io/git-novice/).

Using an RStudio project also has the key benefit of correctly setting your working directory when in an R session.
This is important because R will look for files in the working directory by default.
If you don't set your working directory, you may have to specify the full path (the location on your drive) to a
file every time you want to read or write it. Sometimes people will use `setwd()` to manually
set the working directory for a script, but this is not recommended because this approach requires the working directory to be
set every time you run your script, and can cause problems if you share your script with others or run it on a different machine.
RStudio project directories can be moved to a different location on the computer, or moved to a different computer, and they will
still work correctly because the working directory is set relative to the project directory (it sets the working directory as the directory with
the `.Rproj` file).

1. To create a project, go to the <kbd>File</kbd> menu, and click <kbd>New Project...</kbd>.

<img src="fig/new_project_window.png" alt="rstudio default session" style="width: 600px;"/>
Expand Down Expand Up @@ -482,11 +492,12 @@ the `help.search()` function.

Use `help.search()` to find R functions for the following statistical
functions. Remember to put your search query in quotes inside the function's
parentheses.
parentheses. Also note that Google or your favorite search engine is a good
place to start as well. It can be helpful to include "R" in your search query.

- Chi-Squared test
- Student t-test
- mixed linear model
- linear model

::::::::::::::: solution

Expand All @@ -497,7 +508,7 @@ find:

- Chi-Squared test: `stats::Chisquare`
- Student t-test: `stats::t.test`
- mixed linear model: `stats::lm.glm`
- linear model: `stats::lm.glm`



Expand Down
Loading