Advanced R Programming - Subset Lists and Data Frames

preview_player
Показать описание
Various ways to subset lists and data frames in R, including the use of indices, names, and logical vectors. Explain the difference between single and double square brackets.

Comments Only: (use this to follow along and type in code yourself):

Code with Comments:

This course roughly follows "Advanced R" by Hadley Wickham. This book is worth reading cover to cover if you want to be a master R programmer.
Рекомендации по теме
Комментарии
Автор

great, I am following your videos on advanced R.

qijialiao
Автор

I don't see how [ ] or [ ] would do partial matching. It is looking for an index integer. Besides that partial match such as A[["ma"]] might confuse someone reading the code.

haraldurkarlsson
Автор

Subsetting is one of the most boring things about learning coding in any language. However, it is like fish oil you have to take it. The question is how can one teach it without leaving a bad taste in a learner's mouth?

haraldurkarlsson
welcome to shbcf.ru