To create numeric vectors of zero length, you can use the following:

numeric()

logical()

character()

integer()

double()

complex()

#OR

vector('numeric')

vector('character')

vector('integer')

vector('double')

vector('complex')

numeric(0)

> length(numeric())

[1] 0

> length(vector('numeric'))

[1] 0