Initializing an empty vector in R can be done in multiple ways.
Perhaps the most basic is to use vector() or array()
> vector(mode='numeric', length=0)
numeric(0)
> array(data=0, dim=0)
numeric(0)
You can change the data type by changing the input of the 'mode' or 'data' arguments (the default for both is a logical data type).