from.dfs {rmr2} | R Documentation |
Functions that read or write R objects from or to the file system
to.dfs(kv, output = dfs.tempfile(), format = "native") from.dfs(input, format = "native")
kv |
A key-value pair; also, a vector, list, matrix or a data frame (in this case the keys will be set to NULL) |
input |
A valid path or a |
output |
A valid path |
format |
For |
These functions allow to move data from RAM to the file system and back. Keep in mind that the capacity of these two storage media is different by two or more orders of magnitude, so the conversion will make sense only in specific situations. These functions do not perform any size control, so the responsibility is on the user. For the local backend, file system means the local file system. For the Hadooop backend it means HDFS
from.dfs
returns the object whose representation is contained in input
. to.dfs
returns the value of output
or, when this is missing, a big.data.object
from.dfs(to.dfs(1:10)) from.dfs(to.dfs(keyval(1, 1:10)))