How can I group values starting with 2019 as 0 or 1 in a dataset in r studio?

How can I group values starting with 2019 as 0 or 1 in a dataset in r studio?

example; ! years !
! 201901 !
! 201704 !
! 201106 !

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.