How to use filter from inmemorydatasets package

Hi, I am looking for a way to extract all the rows that match PT from the column employment_type,

I have tried to change dataset into dataframe but there are still same errors,

can anyone please give me some advices about it? Thanks in advance!

Use new not new().

1 Like

Hi, thanks for the reply!!
when I was trying to filter FT, I realized there are many same job title here, for example there are multiple job title which is data analyst, do you know how to take each job title salary average? I just need one value for each job title, thanks in advance!

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"))