[ | R Documentation |
"["
gets a subset of an object of class
Dasst
.
x |
An object of class |
i |
An integer or logical vector. This is the subset that will be retrieved from the whole object. |
This method gets a subset of an object of class
Dasst
. Shorter objects in the
expression are recycled as often as need be until they
match the length of the longest object.
A new object of class Dasst
that
comprises the elements from the selected subset.
[<-
data(plantGrowth) length(plantGrowth) plantgro1 <- plantGrowth[1:10] length(plantgro1) class(plantgro1) # Drop contents corresponding to selected orders summary(plantGrowth) plantgro2 <- plantGrowth[-1] summary(plantgro2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.