Displaying 20 results from an estimated 500 matches similar to: "RODBC sqlQuery question"
2006 Jan 10
1
eigen()
Hi
I am having difficulty with eigen() on R-devel_2006-01-05.tar.gz
Specifically, in R-2.2.0 I get expected behaviour:
> eigen(matrix(1:100,10,10),FALSE,TRUE)$values
[1] 5.208398e+02+0.000000e+00i -1.583980e+01+0.000000e+00i
[3] -4.805412e-15+0.000000e+00i 1.347691e-15+4.487511e-15i
[5] 1.347691e-15-4.487511e-15i -4.269863e-16+0.000000e+00i
[7] 1.364748e-16+0.000000e+00i
2006 Mar 02
1
Curious subsetting behavior
I have a simple vector, called tmp that I want to subset based on another
vector called vec. Everything works as expected except for below where the
subsetting returns something other than the original data. Any ideas?
> vec <- c(1,2,3,4,5,59,60,27,32,21)
> tmp
[1] 1.0 1.1 2.0 2.1 2.2 3.0 3.1 4.0 5.0 5.1 6.0 7.0 8.0 8.1
9.0
[16] 9.1 9.2 10.0 10.1 11.0 12.0 13.0 14.0
2003 Feb 10
3
non-SQL sqlQuery error
Dear all,
I've encountered a curious problem. I am trying to run an SQL query
using sqlQuery() function in RODBC.
The query works fine when run in a stand-alone SQL browser (Microsoft
Query Analyzer, in particular).
However, when I use the exact same thing from sqlQuery() function, I get
the following error:
Error in "[.data.frame"(data, , ) : not all specified columns exist
2007 Sep 29
0
[ wxruby-Bugs-14322 ] Multiple warnings, especially @__painting__
Bugs item #14322, was opened at 2007-09-29 10:48
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=14322&group_id=35
Category: Incorrect behavior
Group: current
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Multiple warnings, especially @__painting__
Initial Comment:
Hi,
I''m
2006 Nov 06
1
colnames and get means for the columns with the "same" names
hi,
I have a conversion table for colnames like this:
Probe_ID HUMAN_LLID
1 AF106325_PROBE1 7052
2 NM_019386_PROBE1 7052
3 NM_012907_PROBE1 339
4 AW917796_PROBE1 84196
5 L27651_PROBE1 10864
The Probe_ID contains a list of colnames for another data.frame, say x1.
I need to convert such colnames to another ID's system, HUMAN_LLID by
using the table.
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()
2009 Jun 25
0
RODBC: Trying to read an Excel file
Try the function sqlFetch to import the data in the spreadsheet.
jo<-odbcConnectExcel("i:\\all\\sorkinjohn\\stats\\silvermannatalie\\NEMOcomb
ined06-24-09.xls",readOnly = TRUE)
mo<-sqlFetch(jo,'Your Sheet Name or Number',colnames=F,rownames=F)
mo
Hope it helps.
-------------------------------------------------------------
MSc. Rodrigo Aluizio
Centro de Estudos do
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,
2005 Dec 22
0
Getting AdapterNotSpecified on simple script/generate
So even after installing the sqlite3-ruby gem without issues, I still
get this error when I try to generate a model...
Attempting local installation of ''sqlite3-ruby''
Local gem file not found: sqlite3-ruby*.gem
Attempting remote installation of ''sqlite3-ruby''
Select which gem to install for your platform (powerpc-darwin8.3.0)
1. sqlite3-ruby 1.1.0 (mswin32)
2009 Jan 13
0
crash on multiple queries to postgresql db [solved]
On Mon, Jan 12, 2009 at 6:31 PM, Martin Morgan <mtmorgan at fhcrc.org> wrote:
> An off-list guess is, ironically, to NOT call dbDisconnect or gc().
>
> The C code in the package registers a 'finalizer' that gets called when the
> object is garbage collected. This is the same code that gets called by
> dbDisconnect. Unfortunately, the code does not check to see if
2008 Jun 24
4
Find max of a row in data frame (like Excel)
Hi,
Here's the data we have:
> rs[1:5,]
probe_id f1 f2 f3 f4 M A f
1 A_68_P20002076 2 58 0 0 1.51778114 6.344453 59
2 A_68_P20002775 22 8 15 0 0.43419304 5.488819 59
3 A_68_P20005791 43 3 0 0 0.05698666 9.830594 59
4 A_68_P20005805 11 34 0 0 1.71076835 6.624038 59
5 A_68_P20006729 16 44 0 0 0.85498261 6.044229 59
I want rs$f be the max of f1, f2, f3,
2007 Nov 29
2
sqlQuery of variable of type varchar - confusion with "."
Dear list,
I have a rather large dataset in SAS which I export to a SQLite database for subsequent use in R.
One of the columns is
cowidp
1881501224.2
1881501224.2
and the column is stored as a character in SAS. It becomes a varchar in the database (it should be - it is an identifier; not a number). Reading this into R gives
cowidp
1 1881501224
2 1881501224
....
- i.e. the
2008 Jun 12
3
Problem with rowMeans()
Hi all,
I have a matrix called 'data', which looks like:
> data[1:4,1:4]
Probe_ID Gene_Symbol M1601 M1602
1 A_23_P105862 13CDNA73 -1.6 0.16
2 A_23_P76435 15E1.2 0.18 0.59
3 A_24_P402115 15E1.2 1.63 -0.62
4 A_32_P227764 15E1.2 -0.76 -0.42
> dim(data)
[1]
2000 Mar 08
0
RODBC: follow up
Hi Michael,
Here is the result of my first testing:
(0) Dr. Watson
Sorry, I should have given a more precise description: by default in R
exists a function with the name 'table', if you use this name as in
odbcPrimaryKeys(0, table)
a Dr. Watson occurs, because table does not give a table name.
However, it is always a good idea to prevent Dr. Watsons, even if it is
triggered by a
2006 Feb 01
1
Rd files with unknown sections
Hi,
With recent versions of R-devel, "R CMD check" complains about
some "Rd files with unknown sections".
hpages at gladstone:~> R CMD check multtest_1.9.4.tar.gz
...
...
* checking Rd files ... WARNING
Rd files with unknown sections:
/home/hpages/multtest.Rcheck/00_pkg_src/multtest/man/boot.resample.Rd:
notes
2006 Jan 07
10
RMagick bus error on OS X in console mode
This is a strange bug that I''ve never seen before. It only shows up
when I run the app through the console (the app is Family Connection,
and it works fine when run as a web app):
22$ ruby script/console
Loading development environment.
>> User
/opt/local/lib/ruby/vendor_ruby/1.8/powerpc-darwin8.3.0/
RMagick.bundle: [BUG] Bus Error
ruby 1.8.2 (2004-12-25)
2008 Oct 23
0
RODBC and RDCOM
I got a table on SQL Server, which has columns EquationId (int) and
Formula (varch(900)).
I need to select Formula with certain EquationId, for example,
Select Formula from OGA_DEV.dbo.Equation where EquationId = 3
I tried to work within RGui using RODBC:
> library(RODBC)
> conn = odbcConnect("SQL Server")
> odbcQuery(conn, "Select Formula from OGA_DEV.dbo.Equation where
2001 Nov 14
0
RODBC: Minor problem, I hope.
Sorry for the numerous posts, I found that an old (~ June) post had the same
title and confused me (and the list server) greatly (and made it hard to get
this as a new thread).
Anyway...
I'm trying to get the RODBC package to work with a MS Sql database
(Wonderware's InSQL). I'm able to connect to the database using the
following:
version
_
2004 Sep 15
0
RODBC 1.1-1
The first non-maintenance update of RODBC since January 2003 is now on
CRAN and will soon propagate to mirrors. From the ChangeLog:
* Select the decimal point from Sys.localeconv.
* Add an external reference and finalizer so open channels get
closed at the end of the session or when there is no R object
referring to them.
* There is no longer a