Muhammad Subianto <[EMAIL PROTECTED]> wrote: > I am new learning R. Now, I have a data set like: > > 24,2,3,3,1,1,2,3,0,1 > 45,1,3,10,1,1,3,4,0,1 > ... with 3730 rows > > I want to remove comma (,) in data set. The result like: > > 24 2 3 3 1 1 2 3 0 1 > 45 1 3 10 1 1 3 4 0 1 > ... > > How can I do it. Thanks you for your help.
Assuming your dataset is stored in a flat ascii file, you need not use R for this trivial translation of the character "," into a space " ". From your shell (i.e., if standard shell tools are available on your machine), type the following: cat file1 | tr , " " > file2 -- Philippe Glaziou Institut Pasteur du Cambodge ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help