I have a dataset called "x" that produces the following records when I do head(x, 1)
VRTG_ID_NR EEG_VRTG_CAT_V GEBR_IDENT_KEUR PL_KEURING NAAM_VRTG_AANB DAT_RESULT_KEUR TYD_RESULT_KEUR KL_CODE_EU_1 KL_CODE_EU_2
1 VF1JA04N522215749 M1 NULL NULL NULL 20090527 906 6 NULL
RES_CODE_KEUR KENT_LAND_OORS LAND_HERK YEAR
1 GDK ME-QT 761 D 2009
I get the following when I show the classes of the relevant column
$YEAR [1] "numeric"
I now want to create a subset where I only see data from the years 2009 en 2010. So I tried
x_subset <- x[x$YEAR >=2009 & <= 2011]
That however gives me the following error:
data frame with 0 columns and 992287 rows
While actually I want an overview with a subset of the records between 2009 and 2011...