Displaying 20 results from an estimated 800 matches similar to: "RODBC: follow up"
2004 Apr 02
1
convert excell file to text with RODBC package
Hi, i can convert excell to list in R with package RODBC ()but i don't
understand 2 mistake
1) Don't read the last row of the table excell
2) Don' t take the hours
My excell file call prueba4.xls and have the following rows:
where prueba4.xls was make in excell (office xp) and have one spreadsheet
call "Hoja1", you see each rows of she:
D??a	Hora	col1	col2	col3	col4	col5
2000 Mar 08
0
RE: [R] RODBC
Sorry,
I was commenting on the previous windows version (version file says 0.5a)
(the first one which ran under RW.1.0.0)
I have Win NT 4.0 Service pack 5
and R is
> version
         _
platform Windows
arch     x86
os       Win32
system   x86, Win32
status
major    1
minor    0.0
year     2000
month    February
day      29
language R
> -----Original Message-----
> From: Prof Brian
2004 Nov 25
0
Problem with ODBC access to SQL database
I have the following problem in getting the "sqlSave" function from the
example code in the R package RODBC to work with MySQL as ODBC server:
 - a new database is created, but no data is written to it
 - the example code works just fine when I use MS Access as ODBC server.
 
----------- offending code and output -------------------
> library(RODBC);
> channel <-
2012 Feb 06
0
sqsSave() test using Test.R script returning error suggesting no values upon "insert"
Hi.
I attempted to use RODBC and decided to execute all the tests provided in "Test.r" under the unpacked package RODBC folder.
Beginning with the following:
library(RODBC)
library(MASS)
USArrests[1,2] <- NA
hills <- hills[1:15,]
row.names(hills)[12] <- "Dollar ('$')"
set.seed(1)
# MySQL
## testdb3 is ODBC/Connector 3.51.x, testdb5 is 5.1.x
channel <-
2004 Apr 30
0
RODBC & MS SQL Server: repeated calls to sqlGetResults() problem
Dear list,
RODBC is mostly working very well on Windows XP talking to MS SQL Server.
However, when trying to retrieve a result set in repeated batches the first
batch returns results ok, but then subsequent calls return no data (see code
below). I tried setting believeNRows=FALSE both in odbcConnect() and in
sqlGetResults() but this doesn't appear to make any difference. Also
odbcFetchRows()
2010 May 20
0
RODBC: sqlSave leave primary key and other columns null
I have an existing table, and I am trying to use sqlSave to append 
additional rows to this database. I omit the primary key, which is a 
uniqueidentifier type (MS SQL), so that the database can populate that 
field. However, I get the following error:
>     sqlSave( ch, result, tablename=thetablename, append=TRUE, 
rownames=FALSE, colnames=FALSE )
Error in odbcUpdate(channel, query, mydata,
2006 Jun 22
2
.Call and data frames
Hello,
I'm trying to fetch a data frame through the C API,
and have no problem doing this when all columns
are numbers, but when there is a column of
strings I have a problem. On the C-side the
function looks like:
SEXP myfunc(SEXP df),
and it is called with a dataframe from
the R side with:
.Call("myfunc", somedataframe)
On the C side (actually C++ side) I use code
like this:
2011 Dec 04
1
RODBC sqlSave / append problem (windows XP, R 2.13.2)
Dear All, 
Using RODBC I have read in a (429 x 11) dataframe from Access, and would
like to append two columns of transformed data (429 x 2) to the original
table (thereby making it a 429 x 13 table). I would ideally like this to
be the same name etc as the original table in Access. 
I have used the following command: 
R>
2020 Sep 24
1
How to use `[` without evaluating the arguments.
Hello R-devel,
I am currently attempting to implement an API similar to data.table wherein single bracket subsetting can accept an unquoted expression to be evaluated in the context of my object.
A simple example from the data.table package looks like this:
DT <- data.table(col1 = c('a', 'b', 'c'), col2 = c('x', 'y', 'z'))
DT[col1 ==
2005 Feb 24
2
sqlSave reports invalid regular expression '[^[:alnum]_]+' (PR#7703)
Full_Name: David Whiting
Version: 2.1.0 Under development (unstable)
OS: linux
Submission from: (NULL) (82.39.106.169)
I have just upgraded from a previous version (2.0.0?) and found some of my code
that used okay to run now gives an error. The function being called is
sqlSave(). I am pretty sure (but not 100% certain) that the data frame I am
trying to save has not changed. I am 100% sure that
2012 May 29
1
RODBC, Excel, and data truncation when writing
Hi,
I am hoping to use the RODBC package to write a dataframe to an Excel .xlsx
file. The dataframe contains at least one field with character elements
that exceed 255 bytes, which appears to be the cell width limit in Excel.
Below is example code and the warning message received:
library(RODBC)
d <-
2005 Feb 24
0
sqlSave reports invalid regular expression '[^[:alnum]_]+' (PR#7704)
Do not use R-bugs for reports on compatibility of obselete versiond of 
packages with unreleased versions of R!
You did not give the RODBC version no.  The current version, 1.1-3, is 
compatible with R-devel.  1.1-2 was not (alongside a dozen or so CRAN 
packages).
The only bugs here are in the report.
On Thu, 24 Feb 2005 david.whiting@ncl.ac.uk wrote:
> Full_Name: David Whiting
>
2010 Feb 24
1
problem with looping on sqlSave()
Dear R users,
I have a follow-up question on sqlSave().
Since most of the output from the tests I use are lists, I would like to 
loop to export each element of the list and append it to the sheet.
Here is what I do:
 > library(RODBC)
 > test <- structure(list(m = structure(c(0.090909090909091, 
0.181818181818182,
0.272727272727273, 0.363636363636364, 0.454545454545455,
2017 Jun 08
1
DESeq2 pairwise compasion
There are two line 216 and 218
Three development stages 5 WEEK (5W), 7W, 9W.
Three tissue: Ca, Co, Pa
each with 2 biological replicate.
With two biological replicate. I want to do differential gene expression
analysis using DESeq2 so I tried these codes after reading about DESeq2:
,my aim is to do the pairwise comparison. how to make colData and design
formula.
library("DESeq2")
2010 Jan 24
0
Setting thevalue of max in calls to sqlGetResults
I have compiled and linked a 64 bit version of R (R 2.9.2) and the
corresponding unix ODBC 64 bit package
When issuing a SqlQuery, I get the following error
> library(RODBC)
> channel <- odbcConnect("OraLSH", <user>, <password>)
> sqlQuery(channel,"select sysdate from dual")
Error in .Call(C_RODBCFetchRows, attr(channel, "handle_ptr"), max,
2010 Jan 24
0
Setting the value of max in calls to sqlGetResults
I have compiled and linked a 64 bit version of R (R 2.9.2) and the
corresponding unix ODBC 64 bit package
When issuing a SqlQuery, I get the following error
> library(RODBC)
> channel <- odbcConnect("OraLSH", <user>, <password>)
> sqlQuery(channel,"select sysdate from dual")
Error in .Call(C_RODBCFetchRows, attr(channel, "handle_ptr"), max,
2013 Sep 19
1
Vignette problem and CRAN policies
Hello, All:
	  The vignette with the sos package used "upquote.sty", required for R 
Journal when it was published in 2009.  Current CRAN policy disallows 
"upquote.sty", and I've so far not found a way to pass "R CMD check" 
with sos without upquote.sty.
	  I changed sos.Rnw per an email exchange with Prof. Ripley without 
solving the problem; see below.  The
2005 Nov 25
1
read.table without sep
Hello all,
I have a data file table.txt  which i have attached. I am trying to pass the
columns as arguments to a function "totnorm" where i am displaying a total
normalization plot. The function is given below:
totnorm<-function(x,y){scale<-sum(x)/sum(y);xlab<-colnames(x);ylab<-colnames(y);x1<-x[[1]];y1<-scale*y[[1]];plot(x1,y1,xlab=xlab,ylab=ylab,col=6,
col.lab=4);}
2005 Nov 25
1
read.table without sep
Hello all,
I have a data file table.txt  which i have attached. I am trying to pass the
columns as arguments to a function "totnorm" where i am displaying a total
normalization plot. The function is given below:
totnorm<-function(x,y){scale<-sum(x)/sum(y);xlab<-colnames(x);ylab<-colnames(y);x1<-x[[1]];y1<-scale*y[[1]];plot(x1,y1,xlab=xlab,ylab=ylab,col=6,
col.lab=4);}
2011 Jul 17
1
ODBC MySql DB: sqlQuery empty
Dear R Beginners, Experts and Users,
I already asked this question on the R-sig-DB mailing list, but sadly
didn't got a reply :-( .
Keeping fingers crossed that I have more luck on the main R mailinglist :) .
I'm trying to connect to a MySQl database via Gnu R using the RODBC
interface. The conenction workes but I get an empty result string.
Gnu R and the MySql DB are running on a 64 bit