readSparse | R Documentation |
Read in an LD matrix stored in a variety of file formats, and convert it to a sprase matrix.
readSparse(LD_path, as_sparse = TRUE, as_df = FALSE, verbose = TRUE, ...)
LD_path |
Path to LD matrix. |
as_sparse |
Convert the LD matrix to a sparse matrix. |
as_df |
Convert to the matrix to a data.frame. |
verbose |
Print messages. |
... |
Arguments passed on to
|
LD_path <- tempfile(fileext = ".csv")
utils::write.csv(echodata::BST1_LD_matrix,
file = LD_path,
row.names = TRUE)
ld_mat <- readSparse(LD_path = LD_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.