Extract Row from Data Frame in R (2 Examples) | Subset One or Multiple Rows of Table / Matrix

preview_player
Показать описание
R code of this video:

x2 = 2:5,
x3 = 9)

data[2, ] # Extract row of data

data[c(1, 4), ] # Get multiple rows
Рекомендации по теме
Комментарии
Автор

I do really appreciate this video and the author -- helped me a lot since I'm a complete R dummy so far and trying to comprehend the language via Coursera. Haven't found any real examples on how to extract multiple rows of data frame to finish assignment neither on discussion section nor on web, while you explained in details how that works -- a big big thanks! Have subscribed to the channel, think will be useful. Super lovely German accent -- greetings from Russia :)

showyourbrain
Автор

What if we have data frame that contains for example notes of certain student and we want to extract students who got note > 10 here do we use subset too ?

AtikaSennour