Description Usage Arguments Value Note Author(s) See Also Examples
Coerce an object of type quarry
to a data.frame
. The attributes
to be stored in the data frame can be specified (default: keeping every
attributes).
1 2 3 |
x |
An object of type |
row.names |
Not used. |
optional |
Not used. |
attr |
A vector listing the dummy variables to be retained in the data frame. |
... |
Further arguments passed to or from other methods. |
A data frame with the columns listed in attr
.
The data frame will only stores the dummy variables of the quarry.
Johan Barthelemy.
Maintainer: Johan Barthelemy johan@uow.edu.au.
as.data.frame
for the generic method.
1 2 3 4 5 6 7 8 9 10 | # creating a quarry
q <- quarry(geological.context = 2, hydrogeological.context = 4,
piezometric.context = 1, quarry.position = 4,
production.catchment = 4, quality.catchment = 3)
# coercing to a data frame
q.df <- as.data.frame(q)
# coercing to a data frame, keeping only "H1", "Z1" and "C2"
q.df.subset <- as.data.frame(q, attr = c("H1","Z1","C2"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.