Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R_basis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
formations
R_basis
Commits
5399d1e3
Commit
5399d1e3
authored
2 years ago
by
Carine Rey
Browse files
Options
Downloads
Patches
Plain Diff
add Antoine's comments
parent
df6b2310
No related branches found
No related tags found
1 merge request
!6
Switch to main as default branch
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
session_1/session_1.Rmd
+5
-5
5 additions, 5 deletions
session_1/session_1.Rmd
with
5 additions
and
5 deletions
session_1/session_1.Rmd
+
5
−
5
View file @
5399d1e3
...
...
@@ -248,7 +248,7 @@ To call mathematical function you must with `function_name(<number>)`.
For example, for the natural logarithm:
```{r calculatorstep8, include=TRUE}
log(
1
) # natural logarithm
log(
2
) # natural logarithm
```
```{r calculatorstep9, include=TRUE}
...
...
@@ -294,7 +294,7 @@ You can use the `↑` (upper arrow) key to edit the last command and go through
- inequality (read as "is not equal to")
```{r calculatorstep14, include=TRUE}
1 != 2
1 != 2
```
- less than
...
...
@@ -337,7 +337,7 @@ Rstudio provides lots of such shortcuts (you can display them by pressing `alt`
We assign a value to `x`, `x` is called a variable.
```{r VandAstep1, include=TRUE}
x <- 1
/
40
x <- 1
/
40
```
...
...
@@ -389,7 +389,7 @@ x + z
How to test the type of the variable?
```{r VandAstep20, include=TRUE}
is.character(z)
b <- 1
/
40
b <- 1
/
40
b
typeof(b)
```
...
...
@@ -402,7 +402,7 @@ This is called autocompletion, don't hesitate to spam your `tabulation` key as y
Variable names can contain **letters**, **numbers**, **underscores** and **periods**.
They **cannot start with a number** nor contain spaces at all.
They **cannot start with a number
or an underscore
** nor contain spaces at all.
Different people use different conventions for long variable names, these include:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment