Skip to Main Content
R Programming for Bioinformatics
book

R Programming for Bioinformatics

by Robert Gentleman
July 2008
Intermediate to advanced content levelIntermediate to advanced
328 pages
10h 53m
English
Chapman and Hall/CRC
Content preview from R Programming for Bioinformatics
170 R Programming for Bioinformatics
In the code below, we demonstrate the use of the sux and prefix functions.
Notice that white space is considered to be part of the prefix or sux.
> library("Biobase")
> str1 = c("not now", "not as hard as wow", "not something new")
> lcPrefix(str1)
[1] "not "
> lcSuffix(str1)
[1] "w"
For any string, then, the set of suxes is of the same length as the string;
the first sux is the whole string, the second sux is the string starting at
the second letter, and so on. Consider the work biology, which has seven
characters, and hence seven suxes:
1] biology
2] iology
3] ology
4] logy
5] ogy
6] gy
7] y
And these can then be sorted ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computation in BioInformatics

Computation in BioInformatics

S. Balamurugan, Anand T. Krishnan, Dinesh Goyal, Balakumar Chandrasekaran, Boomi Pandi
R for Data Science Cookbook (n)

R for Data Science Cookbook (n)

Prabhanjan Narayanachar Tattar, Yu-Wei, Chiu (David Chiu)

Publisher Resources

ISBN: 9781420063677