importance_tbl: Extract the importance data frame

Description Usage Arguments Examples

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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)

variantspark documentation built on June 13, 2019, 5:03 p.m.