dsApplyInPairs.GenericDataFileSet | R Documentation |
Applies a function to each pair of file in two file sets.
## S3 method for class 'GenericDataFileSet'
dsApplyInPairs(ds1, ds2, FUN, ..., args=list(), skip=FALSE, verbose=FALSE,
.parallel=NULL, .control=NULL)
ds1 , ds2 |
|
FUN |
A |
... |
Arguments passed to |
args |
(optional) A named |
skip |
If |
verbose |
See |
WARNING: dsApplyInPairs()
is defunct; instead use
future.apply::future_mapply()
.
Returns a list
.
Henrik Bengtsson
## Not run:
# - - - - - - - - - - - - - - - - - - - - - - - -
# Setting up a file set
# - - - - - - - - - - - - - - - - - - - - - - - -
path <- system.file(package="R.filesets")
ds <- GenericDataFileSet$byPath(path)
# - - - - - - - - - - - - - - - - - - - - - - - -
# Get the size of each file
# - - - - - - - - - - - - - - - - - - - - - - - -
sizes <- lapply(ds, FUN=getFileSize)
str(sizes)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.