KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the reason that vector indices in R start with 1 , instead of the usual 0 ? Example: > arr<-c(10,20) > arr[0] numeric(0) > arr[1] [1] 10 > arr[2] [1] 20 Is it just that they want to store extra information about the vector and didn't know where to store it except as the vector's first element?
Tags (comma-separated)
Save Edits
Cancel