trimmers | R Documentation |
Trim vector by index
Trim vector front
Trim vector rear
Trim vector front + rear
x %[-% i x %-]% i x %[-]% j
x |
A vector |
i |
A 1 element vector by which the rear of |
j |
A one, or two element numeric vector. One element: Trim front by |
A trimmed version of x
x <- rnorm(100) # Trim front x%[-%5 # Trim rear x%-]%5 # Trim front + rear x%[-]%c(2,10) x%[-]%7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.