[rpostgresql] r222 committed - row.names be integer rather than charactor

6 views
Skip to first unread message

rpost...@googlecode.com

unread,
Dec 3, 2011, 10:59:36 PM12/3/11
to rpostgr...@googlegroups.com
Revision: 222
Author: tomo...@kenroku.kanazawa-u.ac.jp
Date: Sat Dec 3 19:59:10 2011
Log: row.names be integer rather than charactor
http://code.google.com/p/rpostgresql/source/detail?r=222

Modified:
/trunk/RPostgreSQL/R/PostgreSQLSupport.R

=======================================
--- /trunk/RPostgreSQL/R/PostgreSQLSupport.R Sat Dec 3 06:20:39 2011
+++ /trunk/RPostgreSQL/R/PostgreSQLSupport.R Sat Dec 3 19:59:10 2011
@@ -410,7 +410,7 @@
cnt <- dbGetRowCount(res)
nrec <- length(rel[[1]])
indx <- seq(from = cnt - nrec + 1, length = nrec)
- attr(rel, "row.names") <- as.character(indx)
+ attr(rel, "row.names") <- as.integer(indx)
if(usingR())
class(rel) <- "data.frame"
else

Reply all
Reply to author
Forward
0 new messages