Hi, I'm fairly new to R, and to coding in general, and there are two quite basic things I cannot figure out how to do, any help on either would be much appreciated;
In my dataset I have a numeric column DXCURREN, which contains the values 1, 2 or 3 for each line, I want to separate this data into two classes, HC=1, and non-HC=2 or 3
one column of data contains years, but the data is in the format '/YYYY', is there a way to automatically remove or ignore the '/' at the beginning of the data?