Returns an example of summary stats that have had their column names already standardised with standardise_header.
formatted_example(
path = system.file("extdata", "eduAttainOkbay.txt", package = "MungeSumstats"),
formatted = TRUE,
sorted = TRUE
)
Path to raw example file. Default to built-in dataset.
Whether the column names should be formatted
(default:TRUE
).
Whether the rows should be sorted by genomic coordinates
(default:TRUE
).
sumstats_dt
sumstats_dt <- MungeSumstats::formatted_example()
#> Standardising column headers.
#> First line of summary statistics file:
#> MarkerName CHR POS A1 A2 EAF Beta SE Pval
#> Sorting coordinates.