But usually when a newcomer asks about this, the response is “don’t do 1:length(x) or the world will come to an end.” The same holds for other best practices. We could be more nuanced when answering these questions.
1:length(x)