Answer:
someDataframe <- read.table("someFile.txt", sep="\t", header=TRUE)
//in this example, the columns in the .txt file are separated by tabs (tab delimited)
//header = TRUE indicates that the first row in the .txt file represents the headers of the data frame
//change this to FALSE if the first row already represents raw data
No comments:
Post a Comment