Learn R Programming

phylotools (version 0.1.2)

appendchar: Paste character according to the longest character.

Description

Paste character for each elements at the second column which is shorter than the longest one.

Usage

appendchar(mat, pattern = "?")

Arguments

mat
data frame with two columns
pattern
Character to be added to the end of elements

Value

A data frame with specified character appended to the end of each shorter elements.

Details

None.

References

Kress W., Erickson D., Jones F., Swenson N., Perez R., Sanjur O., Bermingham E., Plant DNA barcodes and community phylogeny of a tropical forest dynamics plot in Panama. Proceedings of the National Academy of Sciences of the United States of America. 2009 18621-18626

See Also

See Also framsub

Examples

Run this code

##appendchar  example ########
aa <- c("1","2","3")
bb <- c("abc","abcd","abcdefg")
rrr <- data.frame(aa, bb)
rrr
appendchar(rrr)

Run the code above in your browser using DataLab