[R] Reading one column .csv file
Berend Hasselman
bhh at xs4all.nl
Thu Aug 16 06:56:15 CEST 2012
On 16-08-2012, at 06:06, darnold wrote:
> Tried that already.
>
> My clipboard:
>
> x
> 2
> 3
> 4
> 5
>
> My attempt:
>
>> a <- read.delim(pipe("pbpaste"))
> Warning message:
> In read.table(file = file, header = header, sep = sep, quote = quote, :
> incomplete final line found by readTableHeader on 'pbpaste'
>
> And again:
>
>> a <- read.delim(pipe("pbpaste"),header=TRUE)
> Warning message:
> In read.table(file = file, header = header, sep = sep, quote = quote, :
> incomplete final line found by readTableHeader on 'pbpaste'
>
> Suggestions?
>
It's a warning message not an error. It tells you that the final line does not end with a newline character. That's Excel's fault.
After a <- read.delim(....) just inspect a with
a
It's probably ok.
Berend
More information about the R-help
mailing list