sdp2char | R Documentation |
Convert a vector of numeric codes for strain distribution patterns to character strings.
sdp2char(sdp, n_strains = NULL, strains = NULL)
sdp |
Vector of strain distribution patterns (integers between
1 and |
n_strains |
Number of founder strains (if missing but
|
strains |
Vector of single-letter codes for the strains |
Vector of character strings with the two groups of alleles separated by a vertical bar (|).
invert_sdp()
, calc_sdp()
sdp <- c(m1=1, m2=12, m3=240)
sdp2char(sdp, 8)
sdp2char(sdp, strains=c("A", "B", "1", "D", "Z", "C", "P", "W"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.