variantspark (version 0.1.1)

vs_read_labels: Reading labels

Description

This function reads only the label column of a CSV file and returns a jobj object from CsvLabelSource scala class.

Usage

vs_read_labels(vsc, path, label = "label")

Arguments

vsc

A variantspark connection.

path

The file's path.

label

A string with the label column name.

Value

spark_jobj, shell_jobj

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
library(sparklyr)

sc <- spark_connect(master = "local")
vsc <- vs_context(sc)

labels <- vs_read_labels(vsc, 
                         system.file("extdata/hipster_labels.txt",
                                      package = "variantspark"))

labels 
# }

Run the code above in your browser using DataLab