Slice index in 'Python' arrays
Examples
if(interactive() && dir.exists(env_path())) {
x <- np_array(array(seq(20), c(4, 5)))
# equivalent to x[::2]
x[py_slice(NULL, NULL, 2L)]
}
Slice index in 'Python' arrays
if(interactive() && dir.exists(env_path())) {
x <- np_array(array(seq(20), c(4, 5)))
# equivalent to x[::2]
x[py_slice(NULL, NULL, 2L)]
}