Learn R Programming

rfml (version 0.1.0)

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

Description

The function uploads a sample data set to MarkLogic Server and returns a ml.data.frame object. Provided data sets are:
  • "baskets" - sample order documents that can be used with the ml.arules function.

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

Usage

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

Run this code
## Not run: 
#  locConn <- ml.connect()
#  mlBaskets <- ml.load.sample.data(locConn, "baskets")
# ## End(Not run)

Run the code above in your browser using DataLab