Skip to content

Commit

Permalink
docs: remove section on confirming that it is a list
Browse files Browse the repository at this point in the history
## Description 

Not sure if this is controversial, but it's not clear to me why this check is needed here. I think the example above with adding different names is enough - and this section is quite long already :)
  • Loading branch information
signekb authored and lwjohnst86 committed May 5, 2024
1 parent 27ff494 commit 1bf4539
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions sessions/functionals.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -724,15 +724,6 @@ list(average = mean)
list(ave = mean)
```

You can confirm that it is a list by using the function `names()`:

```{r}
#| filename: "Console"
names(list(mean = mean))
names(list(average = mean))
names(list(ave = mean))
```

Let's stick with `list(mean = mean)`:

```{r}
Expand Down

0 comments on commit 1bf4539

Please sign in to comment.