mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@54dd332cd8 🚀
This commit is contained in:
parent
4cf4bd0499
commit
6d545337de
328 changed files with 12930 additions and 1662 deletions
50
reference/remove_nested_list.md
Normal file
50
reference/remove_nested_list.md
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Very simple function to remove nested lists, like when uploading .rds
|
||||
|
||||
Very simple function to remove nested lists, like when uploading .rds
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
remove_nested_list(data)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- data:
|
||||
|
||||
data
|
||||
|
||||
## Value
|
||||
|
||||
data.frame
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
dplyr::tibble(a = 1:10, b = rep(list("a"), 10)) |> remove_nested_list()
|
||||
#> # A tibble: 10 × 1
|
||||
#> a
|
||||
#> <int>
|
||||
#> 1 1
|
||||
#> 2 2
|
||||
#> 3 3
|
||||
#> 4 4
|
||||
#> 5 5
|
||||
#> 6 6
|
||||
#> 7 7
|
||||
#> 8 8
|
||||
#> 9 9
|
||||
#> 10 10
|
||||
dplyr::tibble(a = 1:10, b = rep(list(c("a", "b")), 10)) |> as.data.frame()
|
||||
#> a b
|
||||
#> 1 1 a, b
|
||||
#> 2 2 a, b
|
||||
#> 3 3 a, b
|
||||
#> 4 4 a, b
|
||||
#> 5 5 a, b
|
||||
#> 6 6 a, b
|
||||
#> 7 7 a, b
|
||||
#> 8 8 a, b
|
||||
#> 9 9 a, b
|
||||
#> 10 10 a, b
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue