Description Usage Arguments Details Value Author(s) Examples
Wrapper of system calls in which input and output are all table-like files
1 | systemdf(cmd, envir = parent.frame(), verbose = FALSE)
|
cmd |
shell command |
envir |
environment where to look for variables encoded in |
verbose |
whether print messages |
This function (system + data frame) provides a convinient way to invoke
system calls in R. Since most of system calls expect tables as inputs and outputs,
systemdf
does following things step by step:
use backtick to mark variables which are data frames or other variables which can be converted to data frames by as.data.frame
extract data frames
write data frames into temporary files
replace variables names with paths that correspond to temporary files
make the system call
finally send back the output by piping back to R
A simple example is as follows:
1 2 3 |
A data frame. Sometimes column names may be lost.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.