Skip to contents

Get forgot tibble with only first two fields populated by default

Usage

forgot2(pkg, keyword = NULL, selected = c())

Arguments

pkg

string with installed R package name

keyword

optional string to filter the dataframe on for any mention of

selected

optional string vector of columns to add on to search

Value

tibble with function documentation info

Examples

forgot2("stringr")
#> # A tibble: 37 × 2
#>    function_name title                                                          
#>    <chr>         <chr>                                                          
#>  1 case          Convert string to upper case, lower case, title case, or sente…
#>  2 invert_match  Switch location of matches to location of non-matches          
#>  3 modifiers     Control matching behaviour with modifier functions             
#>  4 %>%           Pipe operator                                                  
#>  5 str_c         Join multiple strings into one string                          
#>  6 str_conv      Specify the encoding of a string                               
#>  7 str_count     Count number of matches                                        
#>  8 str_detect    Detect the presence/absence of a match                         
#>  9 str_dup       Duplicate a string                                             
#> 10 str_equal     Determine if two strings are equivalent                        
#> # ℹ 27 more rows
forgot2(stringr)
#> # A tibble: 37 × 2
#>    function_name title                                                          
#>    <chr>         <chr>                                                          
#>  1 case          Convert string to upper case, lower case, title case, or sente…
#>  2 invert_match  Switch location of matches to location of non-matches          
#>  3 modifiers     Control matching behaviour with modifier functions             
#>  4 %>%           Pipe operator                                                  
#>  5 str_c         Join multiple strings into one string                          
#>  6 str_conv      Specify the encoding of a string                               
#>  7 str_count     Count number of matches                                        
#>  8 str_detect    Detect the presence/absence of a match                         
#>  9 str_dup       Duplicate a string                                             
#> 10 str_equal     Determine if two strings are equivalent                        
#> # ℹ 27 more rows
forgot2("dplyr", "count")
#> # A tibble: 2 × 2
#>   function_name title                               
#>   <chr>         <chr>                               
#> 1 count         Count the observations in each group
#> 2 n_distinct    Count unique combinations           
forgot2(dplyr, "count")
#> # A tibble: 2 × 2
#>   function_name title                               
#>   <chr>         <chr>                               
#> 1 count         Count the observations in each group
#> 2 n_distinct    Count unique combinations