R-users
I need to create a txt file as input for another program using data.frame
values
Variable_name Start End
[1,] "aaaaaaaaaaaaa" "1" "1"
[2,] "bbbbbbbbbbb" "2" "2"
[3,] "ccccccccccccc" "3" "6"
[4,] "ddddddddddd" "7" "10"
[5,] "eeeeeeeeeee" "11" "16"
the text file should look like below,
if the start and the end is the same, only put the start one in the txt
file.
aaaaaaaaaaaaa 1
bbbbbbbbbbb 2
ccccccccccccc 3-6
ddddddddddd 7-10
eeeeeeeeeee 11-16
Any help will be appreciated.
Taka,
_________________________________________________________________
PC Magazines 2007 editors choice for best Web mailaward-winning Windows
Live Hotmail.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.