Skip to content
Prev 303458 / 398513 Next

Import Data from Excel

On Aug 15, 2012, at 2:04 PM, li li wrote:

            
You could use readLines() or you could use scan().

Perhaps:

input <- scan(file="clipboard", what="numeric")

If you know the number of columns, say 10, it could be:

inpmat <- matrix( scan(file="clipboard", what="numeric"), ncol=10)