Switch the 'favourite' column for a specified row. This feature is no longer included in the final application.
Examples
data <- tibble::tibble(
x = 1:10,
favourite = FALSE
)
favourite_stock(data, 5)
#> # A tibble: 10 × 2
#> x favourite
#> <int> <lgl>
#> 1 1 FALSE
#> 2 2 FALSE
#> 3 3 FALSE
#> 4 4 FALSE
#> 5 5 TRUE
#> 6 6 FALSE
#> 7 7 FALSE
#> 8 8 FALSE
#> 9 9 FALSE
#> 10 10 FALSE