importance_tbl {variantspark}R Documentation

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

## 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)

## End(Not run)


[Package variantspark version 0.1.1 Index]