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

Описание к видео Extract Row from Data Frame in R (2 Examples) | Subset One or Multiple Rows of Table / Matrix

How to extract a row from a data frame in the R programming language. More details: https://statisticsglobe.com/extract-r...
R code of this video:

data <- data.frame(x1 = 1:4, # Create example data
x2 = 2:5,
x3 = 9)

data[2, ] # Extract row of data

data[c(1, 4), ] # Get multiple rows

Комментарии

Информация по комментариям в разработке