R - scan() to read from file or console

21 Jan 2018

Use scan e.g. to fill a data fram in an “interactive” way in R (useful for small toy data)

data <- scan()
# then can enter manually to fill a data frame value by value
[ R  function  ]