Question: how to extract data from dataframe in r?
Answer: Extract value of a single cell: df_name[x, y] , where x is the row number and y is the column number of a data frame called df_name . Extract the entire row: df_name[x, ] , where x is the row number. ...  Extract the entire column: df_name[, y] where y is the column number.