Print the Nth Row in a List of Data Frames

后端 未结 4 1371
一向
一向 2020-12-30 14:25

I am cleaning several excel files in R. They unfortunately are of unequal dimensions, rows and columns. Currently I am storing each excel sheet as a data frame in a list. I

4条回答
  •  失恋的感觉
    2020-12-30 14:53

    For example, you have a .csv file called hw1_data.csv and you want to retrieve the 47th row. Here is how to do that:

    x<-read.csv("hw1_data.csv")
    
    x[47,]
    

    If it is a text file you can use read.table.

提交回复
热议问题