ml.load.sample.data: Load sample data set into MarkLogic server

Description Usage Arguments Value Examples

View source: R/config.R

Description

The function uploads a sample data set to MarkLogic Server and returns a ml.data.frame object. Provided data sets are:

To remove the sample use the rm.ml.data.frame on the returned ml.data.frame object.

Usage

1
ml.load.sample.data(conn, dataSet = "baskets", name = "")

Arguments

conn

A ml.conn-class with a connection to a MarkLoic server

dataSet

Which dataset to upload, "baskets"

name

The name of the object. The data will be added to a collection with that name. If not provided the dataSet name is used.

Value

A ml.data.frame object pointing to the uploaded dataset.

Examples

1
2
3
4
5
## Not run: 
 locConn <- ml.connect()
 mlBaskets <- ml.load.sample.data(locConn, "baskets")

## End(Not run)

rfml documentation built on May 2, 2019, 3:01 a.m.