I have a tibble called df
:
> class(df)
[1] "tbl_df" "tbl" "data.frame"
Now I run:
> sen <- df[df$my_dummy==0, "col_name"]
This returns another tibble:
> class(sen)
[1] "tbl_df" "tbl" "data.frame"
Why?
How can I get a "numeric" out of it?
try pull
sen <- df %>%
filter(my_dummy == 0) %>%
pull(col_name)