i imported a csv file by using read.csv, i checked the data format is 'list' by using mode()
.
The csv imported file has a column called 'condition' with value: used or new
Then i need to add a new column called'Isnew', if the existing column 'condition' is used, then 'Isnew' is 0, otherwise 'Isnew' is 1,
how to achieve that?