Displaying 4 results from an estimated 4 matches for "ufeff".
Did you mean:
feff
2011 Feb 22
3
Weird error (special character) of read.table
Hi,
I have the following input file.
$ cat main.txt
CEL_A CELL_B
1 4
2 5
2 6
Then I run read.table in R.
> f=read.table('main.txt', header=T, check.names=F, sep='\t')
> head(f)
\ufeffCEL_A CELL_B
1 1 4
2 2 5
3 2 6
> f$CEL_A
NULL
I'm not sure where the special character \ufeff comes from. Could anybody
let me know what is the problem?
Thanks,
John
[[alternative HTML version deleted]]
2012 Apr 13
2
Odd characters at beginning of file
I'm use RPostgreSQL to access data on a Postgres server. I would like to
keep my SQL statements in external files, as they're easier to write and
debug in pgAdmin, then I use readLines to bring them into R and feed to
dbGetQuery.
Here's the problem. When I create a SQL script with pgAdmin, then load it
in R, the ensuing script fails when I feed it to dbGetQuery. When I inspect
the
2014 Nov 19
0
nchar reporting wrong width when zero-space character is present?
Dear list,
If I include the zero-width non-breaking space (\ufeff) in a string,
nchar seems to compute the wrong number of columns used by 'cat'.
> x <- "f\ufeffoo"
> x
[1] "f?oo"
> nchar(x,type="width")
[1] 2
I would expect "3" here. Going through the documentation of 'Encoding'
and 'encod...
2019 Feb 07
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
I can confirm that it doesn't happen on Ubuntu 18.04.1 so Peter is
most likely correct; it looks like its Windows specific.
On Thu, 7 Feb 2019 at 12:55, peter dalgaard <pdalgd at gmail.com> wrote:
>
> This doesn't seem to be happening on MacOS, neither in Terminal nor RStudio, (R 3.5.1, R-devel, R-patched). So probably Windows specific.
>
> -pd
>
> > On 7 Feb