Skip to content

Commit

Permalink
Revise examples to assign results to objects
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroman committed Jun 30, 2020
1 parent 2818d07 commit 8e8c54b
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion R/cbind_smother.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' @examples
#' df1 <- data.frame(x=c(1,2,3,NA,4), y=c(5,8,9,10,11), row.names=c("A", "B", "C", "D", "E"))
#' df2 <- data.frame(z=c(7,8,0,9,10), y=c(6,NA,NA,9,10), row.names=c("A", "B", "F", "C", "D"))
#' cbind_smother(df1, df2)
#' df1n2 <- cbind_smother(df1, df2)
cbind_smother <-
function(mat1, mat2)
{
Expand Down
2 changes: 1 addition & 1 deletion R/count_unique_geno.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' c("NA", "NA", "NA", "A", "A"),
#' c("A", "A", "T", "G", "G"),
#' c("C", "C", "G", "G", "NA"))
#' count_unique_geno(g)
#' counts <- count_unique_geno(g)
count_unique_geno <-
function(genotypes, na.strings=c("N", "H", "NA", ""), cores=1)
{
Expand Down
2 changes: 1 addition & 1 deletion R/encode_geno.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' c("A", "A", "AT", "TA", "TT"),
#' c("T", "G", NA, "GT", "TT"))
#' codes <- rbind(c("C", "G"), c("A", "T"), c("T", "G"))
#' encode_geno(geno, codes)
#' geno_encoded <- encode_geno(geno, codes)
#'
encode_geno <-
function(geno, allele_codes, output_codes=c("-", "A", "H", "B"), cores=1)
Expand Down
2 changes: 1 addition & 1 deletion R/find_consensus_geno.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#' c("C", "C", "G", "G", "A", NA, NA, NA),
#' rep(NA, 8),
#' c("C", "C", "G", "G", "G", "C", "G", "G"))
#' find_consensus_geno(g)
#' consensus <- find_consensus_geno(g)
find_consensus_geno <-
function(genotypes, na.strings=c("N", "H", "NA", ""), cores=1)
{
Expand Down
2 changes: 1 addition & 1 deletion R/find_unique_geno.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' c("NA", "NA", "NA", "A", "A"),
#' c("A", "A", "T", "G", "G"),
#' c("C", "C", "G", "G", "NA"))
#' find_unique_geno(g)
#' ug <- find_unique_geno(g)
find_unique_geno <-
function(genotypes, na.strings=c("N", "H", "NA", ""), cores=1)
{
Expand Down
3 changes: 0 additions & 3 deletions R/scan_qtl_to_qtl2.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
#' out <- scanone(hyper)
#' out2 <- scan_qtl_to_qtl2(out)
#'
#' library(qtl2)
#' plot(out2$scan1, out2$map)
#'
#' @seealso [scan_qtl_to_qtl2()]
#'
#' @export
Expand Down
2 changes: 1 addition & 1 deletion man/cbind_smother.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/count_unique_geno.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/encode_geno.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/find_consensus_geno.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/find_unique_geno.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions man/scan_qtl_to_qtl2.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e8c54b

Please sign in to comment.