Hi everyone, I'm starting using R and I encounter a problem that I can't explain:
filter_table_and_extract_column <- function(data,column_to_filter_by_value,value, column_to_extract){
extracted_column <-(data %>% filter(column_to_filter_by_value == value))$column_to_extract
Return(extracted_column)
Error message:
`Preformatted text`Error in { (1-get_signature_infos.R#152): task 1 failed - "Problem with `filter()` input `..1`.
✖ object 'ONTOLOGY' not found
ℹ Input `..1` is `column_to_filter_by_value == value`."`Preformatted text`
In this case, the variable : column_to_filter_by_value is ONTOLOGY