read_ukb_tabdata | R Documentation |
This function reads the dataset ukbxxxxx.tab generated using ukb utility and keep only data fields specified. Depending on the size of the dataset the process may take some time.
read_ukb_tabdata(fukb, dfhtml, fields_to_keep = default_ukb_fields())
fukb |
Path to the main dataset (.tab) file |
dfhtml |
dataframe containing the metadata, can be obtained by |
fields_to_keep |
the datafields to keep as a character vector, default: default_ukb_fields() |
main dataset as dataframe with only selected data fields
fukbtab <- paste(pheno_dir,"ukb12345.tab",sep="")
dfhtml<- read_ukb_metadata ("ukb12345.html")
dfukb <- read_ukb_tabdata(fukbtab,dfhtml,fields_to_keep = default_ukb_fields())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.