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
e9bc3b9a
Commit
e9bc3b9a
authored
2 years ago
by
Carine Rey
Browse files
Options
Downloads
Patches
Plain Diff
update session6
parent
aac1f3a8
No related branches found
Branches containing commit
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_6/session_6.Rmd
+12
-5
12 additions, 5 deletions
session_6/session_6.Rmd
with
12 additions
and
5 deletions
session_6/session_6.Rmd
+
12
−
5
View file @
e9bc3b9a
---
title: "R.6: tidydata"
author: "Laurent Modolo [laurent.modolo@ens-lyon.fr](mailto:laurent.modolo@ens-lyon.fr)"
date: "202
1
"
author: "Laurent Modolo [laurent.modolo@ens-lyon.fr](mailto:laurent.modolo@ens-lyon.fr)
;\nCarine Rey [carine.rey@ens-lyon.fr](mailto:carine.rey@ens-lyon.fr)
"
date: "202
2
"
output:
rmdformats::downcute:
self_contain: true
use_bookdown: true
default_style: "light"
lightbox: true
css: "
http://perso.ens-lyon.fr/laurent.modolo/R/src
/style.css"
css: "
../www
/style
_Rmd
.css"
---
```{r include=FALSE}
library(fontawesome)
```
 `r fa(name = "fas fa-house", fill = "grey", height = "1em")`  https://can.gitbiopages.ens-lyon.fr/R_basis/
```{r setup, include=FALSE}
rm(list=ls())
knitr::opts_chunk$set(echo = TRUE)
...
...
@@ -107,7 +114,7 @@ You can specify the names of the columns where the data will be tidy (by default
```{r, eval = F}
long_example <- wide_example %>%
pivot_longer(-X1
)
, names_to = "V1", values_to = "V2")
pivot_longer(-X1, names_to = "V1", values_to = "V2")
```
### Exercice
...
...
@@ -328,4 +335,4 @@ These expect the x and y inputs to have the same variables, and treat the observ
knitr::include_graphics('img/overview_set.png')
```
## See you in [R.7: String & RegExp](http://
perso.ens-lyon.fr/laurent.modolo/R
/session_7/)
## See you in [R.7: String & RegExp](http
s
://
can.gitbiopages.ens-lyon.fr/R_basis
/session_7/)
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