powered by
Slice index in 'Python' arrays
py_slice(...)
Index slice instance
passing to slice ('Python')
slice
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)] }
Run the code above in your browser using DataLab