Description Usage Arguments Details Value Author(s) References See Also Examples
This function could be used to concatenate the files in the given directory.
1 |
dir |
A string name the directory where files to be concatenated exist. |
appendix |
The appendix that files to be concatenated have. |
file |
The file name of the result to be save to. |
Any plain text files that match the appendix
could be concatenate or copy to one file.
Copy all the contents of the files having the matched appendix to one file.
Jinlong zhang jinlongzhang01@gmail.com Qiong Ding dingqiong1@gmail.com
None.
See Also raw2Fas
for copying all different fasta file contents to one.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #### file.cat() example
cat(
">No305",
"NTTCGAAAAACACACCCACTACTAAAANTTATCAGTCACT",
file = "dna1.fas", sep = "\n")
cat(
">No304",
"ATTCGAAAAACACACCCACTACTAAAAATTATCAACCACT",
file = "dna2.fas", sep = "\n")
cat(
">No305",
"NTTCGAAAAACACACCCACTACTAAAANTTATCAGTCACT",
file = "dna3.fas", sep = "\n")
file.cat(dir = getwd(), appendix = ".fas", file = "total")
unlink("dna1.fas")
unlink("dna2.fas")
unlink("dna3.fas")
unlink("total.fas")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.