if I read from 1 file: inp1 <- scan("data1",list(0,0)) inp2 <- scan("data2",list(0,0)) allInp <- c(inp1,inp2) I get a table with 4 columns. How can I get a table with 2 columns and more rows?