-
-
Save kindlychung/757f816f5b2f9e8d36b8 to your computer and use it in GitHub Desktop.
collr2 documentation details
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' These functions take a genotype matrix and generate a collapsed genotype matrix | |
#' by shifting. For example: | |
#' ``` | |
#' a b c | |
#' d e f | |
#' g h i | |
#' | |
#' # Shift by 1 | |
#' b c NA | |
#' e f NA | |
#' h i NA | |
#' | |
#' # Combine these two | |
#' a+b b+c NA | |
#' d+e e+f NA | |
#' g+h h+i NA | |
#' ``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For example, this | |
1 1 1 | |
2 2 2 | |
3 3 3 | |
4 4 4 | |
becomes: | |
1 2 3 | |
2 3 4 | |
3 4 NA | |
4 NA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment