Replicate with names
repnam(argument, names = NULL, len=length(names), default = list(NULL))
argument |
a named or non-named vector or list to be replicated |
names |
NULL or a charcter vector of names to which the argument names are matched |
len |
the desired length (required if names is not given) |
default |
the desired default which is replicated in case names are used (the default |
an object like argument or default having length len
This is for internal use, e.g. to handle argument colClasses
in read.table.ffdf
Jens Oehlschlägel
message("a list example") repnam(list(y=c(1,2), z=3), letters) repnam(list(c(1,2), 3), letters) message("a vector example") repnam(c(y=1, z=3), letters, default=NA) repnam(c(1, 3), letters, default=NA)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.