[R] The problem of readLines
wwwhsd at gmail.com
Thu Oct 1 16:06:35 CEST 2009
>From the help page for readLines:
" If the final line is incomplete (no final EOL marker) the
behaviour depends on whether the connection is blocking or not.
For a non-blocking text-mode connection the incomplete line is
pushed back, silently. For all other connections the line will be
accepted, with a warning. "
You can disable the warning with;
readLines('your_file', warn = FALSE)
On Thu, Oct 1, 2009 at 9:39 AM, Tammy Ma <metal_licaling at live.com> wrote:
> Dear R-users,
> I use "readLines" to read data, but when processing the large data set, there are few files which can not be readed in:
> 48: In readLines(name_c[i]) ... :
> incomplete final line found on 'C:/Documents and Settings/lma/My Documents/habitdata/244052900243997/calllog/calllog_log-20050505T121611.txt'
> Whats the problem about this?
> More than messages–check out the rest of the Windows Live™.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
25° 25' 40" S 49° 16' 22" O
More information about the R-help