variantspark (version 0.1.1)

importance_tbl: Extract the importance data frame

Description

This function extracts the importance data frame from the Importance Analysis jobj.

Usage

importance_tbl(importance, name = "importance_tbl")

Arguments

importance

A jobj from the class ImportanceAnalysis, usually the output of vs_importance_analysis().

name

The name to assign to the copied table in Spark.

Examples

Run this code
# NOT RUN {
library(sparklyr)
sc <- spark_connect(master = "local")
vsc <- vs_connect(sc)

hipster_vcf <- vs_read_vcf(vsc, 
                           system.file("extdata/hipster.vcf.bz2",
                                       package = "variantspark"))
labels <- vs_read_labels(vsc, 
                         system.file("extdata/hipster_labels.txt",
                                      package = "variantspark"))

importance <- vs_importance_analysis(vsc, hipster_vcf, labels, 10)
importance_tbl(importance)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace