appendtofolderh {dad} | R Documentation |
Adds a data frame to a folderh
.
Description
Creates an object of class folderh
by appending a data frame to an object of class folderh
.
The appended data frame will be the first or last element of the returned folderh
.
Usage
appendtofolderh(fh, df, key, after = FALSE)
Arguments
fh |
object of class |
df |
data frame to be appended to |
key |
character string. The key defining the relation |
after |
logical. If |
Value
Returns an object of class folderh
, that is a list of n+1
data frames where n
is the number of data frames of fh
.
The value of the attribute attr(, "keys")
is c(key, attr(fh, "keys"))
if after = FALSE
), c(attr(fh, "keys"), key)
otherwise.
Author(s)
Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard