File: verb-do.md

package info (click to toggle)
r-cran-dbplyr 2.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,644 kB
  • sloc: sh: 13; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 725 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# unnamed results must be data frames

    Code
      mf %>% do(nrow(.))
    Condition
      Error in `label_output_dataframe()`:
      ! Results must be data frames
      Problems at positions 1 and 2

# named argument become list columns

    Code
      mf %>% do(nrow = nrow(.), ncol(.))
    Condition
      Error in `named_args()`:
      ! Arguments to `do()` must either be all named or all unnamed

---

    Code
      mf %>% do(nrow(.), ncol(.))
    Condition
      Error in `named_args()`:
      ! Can only supply single unnamed argument to `do()`

---

    Code
      mf %>% do(.f = nrow)
    Condition
      Error in `named_args()`:
      ! `do()` syntax changed in dplyr 0.2. Please see documentation for details