Description Usage Arguments Examples
Instantiate a distributed data frame ('ddf')
| 1 2 | 
| conn | an object pointing to where data is or will be stored for the 'ddf' object - can be a 'kvConnection' object created from  | 
| transFn | transFn a function to be applied to the key-value pairs of this data prior to doing any processing, that transform the data into a data frame if it is not stored as such | 
| update | should the attributes of this object be updated?  See  | 
| reset | should all persistent metadata about this object be removed and the object created from scratch? This setting does not effect data stored in the connection location. | 
| control | parameters specifying how the backend should handle things if attributes are updated (most-likely parameters to  | 
| verbose | logical - print messages about what is being done | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # in-memory ddf
d <- ddf(iris)
d
# local disk ddf
conn <- localDiskConn(tempfile(), autoYes = TRUE)
addData(conn, list(list("1", iris[1:10,])))
addData(conn, list(list("2", iris[11:110,])))
addData(conn, list(list("3", iris[111:150,])))
dl <- ddf(conn)
dl
# hdfs ddf (requires RHIPE / Hadoop)
## Not run: 
  # connect to empty HDFS directory
  conn <- hdfsConn("/tmp/irisSplit")
  # add some data
  addData(conn, list(list("1", iris[1:10,])))
  addData(conn, list(list("2", iris[11:110,])))
  addData(conn, list(list("3", iris[111:150,])))
  # represent it as a distributed data frame
  hdd <- ddf(conn)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.