how to understand numeric()?

numeric(10) will generate 10 0's vector.

I am confused about this function. Why does it give me a zero vector?

See the help for numeric().
The first argument is length. So when you type numeric(10) you generate a vector of length 10. The default value are 0es

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.