Learn R Programming

seqRFLP (version 1.0.1)

dataframe2fas: Convert dataframe to fasta format

Description

This function could be used to convert dataframe to fasta format.

Usage

dataframe2fas(x, file = NULL)

Arguments

x
The input dataframe
file
A character naming the file to be saved to.

Value

Returns data in fasta format.

Details

The input dataframe with the first column the sequences' names, the second column DNA sequences.

References

None.

See Also

See also file.cat and raw2Fas

Examples

Run this code

######## fataframe2fas() example
dd <- dataframe2fas(paste("AAACCCTTAAAAAAATTA
TTTTCTATTGGTTTCTTGGGGGGGTT", 1:10, sep = ""))
dd

Run the code above in your browser using DataLab