Description Usage Arguments Examples
Takes a pseudo-wide column and tranform it into a long format
1 |
id |
a column that will not be splitted |
wide |
the column to split |
pattern |
the character or regex used to split up the wide column (see str_split) |
stringsAsFactors |
should always be FALSE |
... |
additional parameters for |
1 2 3 4 5 6 7 8 | data(pseudo.wide)
elongated.score <- elongate(pseudo.wide$Protein, pseudo.wide$Score)
elongated.sequence <- elongate(pseudo.wide$Protein, pseudo.wide$Sequence)
# The following works only if the Score and Sequence have the same pattern
# (ie same number of splits per ID)
elongated <- data.frame(Protein = elongated.score$id,
Score = elongated.score$wide,
Sequence = elongated.sequence$wide)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.