
a(aa)
aa
are given by aaa()
.
All other values will generate a warning and return NA.
Called without arguments, a()
returns the list of all possible
output values.
citation("seqinr")
aaa
, translate
#
# Show all possible input values:
#
aaa()
#
# Convert them in one letter-code:
#
a(aaa())
#
# Check consistency of results:
#
stopifnot( aaa(a(aaa())) == aaa())
#
# Show what happens with non-allowed values:
#
a("SOS") # should be NA and a warning is generated
Run the code above in your browser using DataLab