Description Usage Arguments Details See Also Examples
Combines two TRAMPsamples
objects into one
large TRAMPsamples
object containing all the samples for both
original objects.
1 2 |
x, y |
|
rewrite.sample.pk |
Logical: If the new sample data ( |
... |
Further arguments passed to or from other methods. |
For a discussion of rewrite.sample.pk
, see the comments on
rewrite.knowns.pk
in the Details of
combine.TRAMPknowns
.
The data
and info
elements of the resulting
TRAMPsamples
object will have union of the columns present in
both sets of samples.
If any additional elements exist as part of the second
TRAMPsamples
object (e.g. passed as ...
to
TRAMPsamples
), these will be ignored with a warning (see
Example).
combine.TRAMPknowns
, the method for
TRAMPknowns
objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | data(demo.samples)
## Let's split the original samples database in two, and recombine.
demo.samples.a <- demo.samples[head(labels(demo.samples), 10)]
demo.samples.b <- demo.samples[tail(labels(demo.samples), 10)]
## Combining these is easy:
demo.samples.c <- combine.TRAMPsamples(demo.samples.a, demo.samples.b)
## There is a warning message because demo.samples.b contains extra
## elements:
names(demo.samples.b)
## In this case, these objects should not be combined, but in other
## cases it may be necessary to rbind() the extra objects together:
## Not run:
demo.samples.c$soilcore <- rbind(demo.samples.a$soilcore,
demo.samples.b$soilcore)
## End(Not run)
## This must be done manually, since there is no way of telling what
## should be done automatically. Ideas/contributions are welcome here.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.