Description Usage Arguments Author(s) Examples
argument x is a 2-column matrix of mz and intenity, or a string format of mz-internsity paris. Character pair of mz and intensity is separated by semicolon, for example, 150 2345.6; 151 4325.67; .... which is often used to represent a mass spectrum as seen in NIST and MassBank.
1 | formatSpec(x, fromTo = c("mat2str", "str2mat"))
|
x |
2-col matrix or type of character depends on "fromTo" |
fromTo |
type of conversion |
Mingshu Cao
1 2 | x="150 2345.6; 151 4325.67;"
formatSpec(x, fromTo="str2mat")
|
Loading required package: rJava
Loading required package: RSQLite
Loading required package: XML
mz inten
[1,] 150 2345.60
[2,] 151 4325.67
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.