Skip to content
Prev 257 / 1559 Next

SQLite: When reading a table, a "\r" is padded onto the last column. Why?

dbWriteTable from a data fram with NA works fine.
But importing data frame txt file has problem.
## txt file begins
a	b
1	2
3	
1	3
 	5
1	2
2	
1	2
## txt file ends
[1] TRUE
a b
1 1 2
2 3 0
3 1 3
4 0 5
5 1 2
6 2 0
7 1 2
[1] TRUE
row_names  a  b
1         1  1  2
2         2  3 NA
3         3  1  3
4         4 NA  5
5         5  1  2
6         6  2 NA
7         7  1  2
2007/1/5, Dirk Eddelbuettel <edd at debian.org>:

  
    

Thread (19 messages)

Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 3 ronggui SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 3 Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 4 Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 4 Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 4 ronggui SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 4 Dirk Eddelbuettel SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 4 ronggui SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 4 Dirk Eddelbuettel SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 4 Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 5 ronggui SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 5 David James SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 5 Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 5 Brian Ripley SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 5 David James SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 5 Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 5 Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 5 ronggui SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 6 Seth Falcon SQLite: When reading a table, a "\r" is padded onto the last column. Why? Jan 6