Categories
What does a comma do in R?
What does a comma give in this case: iris[, 3:5]compared with iris[3:5]like, the result is the same. Also, what does such a case a[i, ]give? Thanks
iris[, 3:5]
iris[3:5]
a[i, ]
Answer the question
In order to leave comments, you need to log in
The construct a[, i]selects data by column i, The construct a[i, ]selects row data i a[i]works likea[, i]
a[, i]
i
a[i]
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question