Data.txt:
Index;Time; 1;2345; 2;1423; 3;5123;
The code:
dat <- read.table(\'data.txt\', skip = 1, nrows = 2, header =TRU
You're using skip incorrectly. Try this:
dat <- read.table('data.txt', nrows = 2, header =TRUE, sep =';')[-1, ]