variantspark (version 0.1.1)

vs_read_csv: Reading a CSV file

Description

The vs_read_csv() reads a CSV file format and returns a jobj object from CsvFeatureSource scala class.

Usage

vs_read_csv(vsc, path)

Arguments

vsc

A variantspark connection.

path

The file's path.

Value

spark_jobj, shell_jobj

Examples

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

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

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

hipster_labels 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab