Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Virgile Baudrot
fdf
Commits
b25b55c9
Commit
b25b55c9
authored
Oct 16, 2019
by
Virgile Baudrot
Browse files
imporve vignette
parent
781acc64
Pipeline
#716
canceled with stage
in 3 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
vignettes/start.Rmd
View file @
b25b55c9
...
...
@@ -44,12 +44,15 @@ fd_filter(DFD, "B", 3)
### Find index of element in column-list matching with a key using `fd_match`
```{r match}
# add new column
DFD = fd_add(DFD, "C", function(i) sample(1:5, 5))
DFD
# apply 'fd_match'
idMatch = fd_match(DFD, "C", 4)
idMatch
#
to
check
this:
# check
with 'fd_filter'
fd_filter(DFD, "C", idMatch)
```
...
...
@@ -62,7 +65,10 @@ fd_melt(DFD, "B", keep = list("A", "C"))
when two column-lists have the same length for each elements, we can melt in the same time
```{r meltDouble}
# add new column with element of same length between 'B' and 'B2'
DFD = fd_add(DFD, "B2", function(i) 1:length(DFD$B[[i]]))
DFD
# apply 'fd_melt'
fd_melt(DFD, "B", "B2", keep = list("A", "C"))
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment