Sample1<-read.csv(paste0(filename,".csv"),header=T,stringAsFactors=F)
My question is I want to extract specific rows and columns out of 100000 records Also what is the use of paste0() function here
paste0() is used to add strings together. In your example, the filename and .csv are made one.
As for selecting specific rows. You don't do that with read.csv. You do that after. For example, this selects the first, third and sixt row from the second and fourth column.
Sample1[c(1,3,6),c(2,4)]
This is 100% a duplicate question. I don't know how to flag it.
pastefunction works.paste("some_string", 1, "@%#%@")making one string, result:[1] "some_string 1 @%#%@"