How to use filter from inmemorydatasets package

I remember there are some threads about this, including How to filter InMemoryDatasets the poster of the link also has a weblog about filtering

filter(ds, :empolyment_type, by = ==("PT"))