### Name: scan ### Title: Read Data Values ### Aliases: scan ### Keywords: file connection ### ** Examples cat("TITLE extra line", "2 3 5 7", "11 13 17", file="ex.data", sep="\n") pp <- scan("ex.data", skip = 1, quiet= TRUE) scan("ex.data", skip = 1) scan("ex.data", skip = 1, nlines=1) # only 1 line after the skipped one scan("ex.data", what = list("","","")) # flush is F -> read "7" scan("ex.data", what = list("","",""), flush = TRUE) unlink("ex.data") # tidy up