let's say I have a data set organized in a data.frame object and I use a logical function like dataframe$variable<30 how do I get r to only show me the entries of the dataset for which the outcome of said function is = TRUE, how do I organize only those entries into a new data.frame while otherwise keeping the old data.frame as is?
I know it's probably pretty basic but I'm not an expert and just really need to understand this for my University related work with R.
I'm sorry for the inconvenience and thanks in advance!