I have two columns which contain numeric values. I would like to create a third by concatenating them as a string. I do that using the paste function. but on exporting the data to CSV. The third column gets converted into date Desired output (Column C):
A      B     C
2      3     2-3
4      5     4-5
A & B is contained in a dataset called concat code written till now as under
concat$C <- paste(concat$A,concat$B, sep="-", collapse = NULL)
This shows the desired output on screen but on writing to CSV, values in C column changes to date format.
 
     
    