I want to use R in Python, as provided by the module Rpy2. I notice that R has very convenient [] operations by which you can extract the specific columns or li
[]
I pre-allocate a vector with
> (a <- rep(NA, 10)) [1] NA NA NA NA NA NA NA NA NA NA
You can then use [] to insert values into it.