py_slice | R Documentation |
Slice index in 'Python' arrays
py_slice(...)
... |
passing to |
Index slice instance
if(interactive() && ants_available()) {
x <- np_array(array(seq(20), c(4, 5)))
# equivalent to x[::2]
x[py_slice(NULL, NULL, 2L)]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.