Examveda

How do you extract the first row of a data frame named my_data in R?

A. my_data[1, ]

B. my_data[first_row()]

C. my_data[,"row" == 1]

D. extract_row(my_data, 1)

Answer: Option A


This Question Belongs to R Programming >> Data Structures In R Programming

Join The Discussion

Related Questions on Data Structures in R Programming