Running analysis 1
- subsetting data
- submitting job #746
Finish 1
- outputing data
/path/to/file
- rOpenSci co-working session -
2023-10-03
Running analysis 1
- subsetting data
- submitting job #746
Finish 1
- outputing data
/path/to/file
── Running analysis 1 ──────────────────────────────────────────────────────────
✔ subsetting data
✔ submitting job #746
── Finishing up ──
outputing data to:
/path/to/file
- cli_unicode_option : NULL
- symbol_charset : UTF-8
- console_utf8 : TRUE
- latex_active : FALSE
- num_colors : 1
- console_width : 80
subset <- function(df, column){
if(!column %in% names(df))
cli::cli_abort("Column '{column}' not in the data")
df[, column]
}
subset(mtcars, column = "bla")
Error in `subset()`:
! Column 'bla' not in the data