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
40 R Programming for Bioinformatics
Map Map applies a function to the corresponding elements of an arbitrary
number of input vectors.
Negate Negate creates a negation of a given function.
Map is a lot like the apply family of functions (Section 8.2.2), and if named
arguments are given, where the names match the name of a formal argument
to the function being mapped, it is used.
> Map(paste, 1:4, letters[1:4], sep = "_")
[[1]]
[1] "1_a"
[[2]]
[1] "2_b"
[[3]]
[1] "3_c"
[[4]]
[1] "4_d"
Filter is also similar to the apply family of functions, with the distinction
that it filters out values that fail the predicate. A standard idiom for remov-
ing missing values from ...
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