Displaying 20 results from an estimated 2000 matches similar to: "RODBC: longest string is truncated"
2006 Oct 18
8
Automatic File Reading
Dear All,
I am given a set of files names as:
velocity1.txt
velocity2.txt
and so on.
I am sure there must be a way to read them automatically in R.
It is really taking me longer to read them than to analyze them.
Anybody has a suggestion to help me out with this?
Many thanks
Lorenzo
2006 Oct 13
1
Problemss compiling RODBC
When updating to the very last version of RODBC under freebsd 6.1 the
errors below pop up but RODBC compiles till the end and, it seems, to
work properly.
What are those errors about?
Vittorio
..............................................
checking for suffix of
executables...
checking for suffix of object files... o
checking
whether we are using the GNU C compiler... grep: error while
2006 Oct 20
2
RODBC problem
In a mdb table, I have a text field with values of 1, 2, .... When I
use rodbc to read it into R, it becomes numeric. Is it a bug or
something?
Thanks.
2006 Oct 27
2
Problem with RODBC
Hello,
I'am currently experiencing some problems with the odbcCloseAll() and odbcClose() function. I'm trying to connect an R script to a MySQL 5.0 database using RODBC1.1-7 and the MySQL ODBC Driver v.3.51 on a Windows XP Machine. At first everything seems fine. The script connects, reads and writes data but when it comes to odbcCloseAll() it crashes and hangs forever. Unfortunately I
2006 Nov 17
2
Forming SQL Query at run-time
Hi.
I am trying to get data from mysql database using a couple of queries.
I do one query to find out the indexes. Then i need to use these
indexes in another query, but i keep getting errors.
Here is something:
numb <- dbSendQuery(con2, "select distinct(comparison) from table1")
count <- fetch(numb, -1)
my.matrix <- as.matrix(count)
rs <- dbSendQuery(con2, "select
2006 Oct 05
3
How to get the function names
I've defined the function
getFunNames <- function(FUN){
if (!is.list(FUN))
fun.names <- paste(deparse(substitute(FUN)), collapse = " ")
else
fun.names <- unlist(lapply(substitute(FUN)[-1], function(a) paste(a)))
fun.names
}
which gives what I want :
> getFunNames(mean)
[1] "mean"
> getFunNames(ff)
[1] "ff"
>
2006 Oct 24
4
avoiding a loop
I think I asked a similar question 3 years ago to the Splus list and I
think the answer was no or noone answered so noone should spend more
than 5 minutes on this
because it could definitely be a waste of time.
My question is whether the function below can be rewritten without a for
loop. apply is fine if it can be done that way but i doubt it. I call it
a lot and would
prefer to not loop.
2005 Oct 09
1
enter a survey design in survey2.9
Hi dears,
I expect that Mr Thomas Lumley will read this message.
I have data from a complexe stratified survey. The population is divide in 12 regions and a region consist to and urban area and rural one. there to region just with urbain area.
stratification variable is a combinaison of region and area type (urban/rural)
In rural area, subdivision are sample with probabilties proporionnal to
2006 Apr 25
1
Validations
Hi to ALL!
I am developing the small shopping cart application.
Inn the I created the models with out crud (not with scaffold)
I wrote my own htmls as for requirement.
How can i wrote the validations for my own rhtml files
Urbain
--
Posted via http://www.ruby-forum.com/.
2004 May 10
1
RODBC in RAqua
I've been trying to get RODBC working in RAqua. For my database,
let's call it "mydb", when I enter
odbcConnect("mydb")
or
odbcConnect("mydb", uid="postgres", pwd="secret"),
RAqua thinks for about 10 seconds, then crashes.
mydb is a PostgreSQL 7.4.2 database running on my machine (Mac OS X
10.3.3). I am using the pgsqlodbc 7.2.5 driver
2010 Jan 12
1
FW: Problems connecting with MySQL using odbcDriverConnect (RODBC package) on Linux
I think I figured this out. I should not have put the Driver name in
braces. Changing it from {MySQL} to MySQL seems to work.
-----Original Message-----
From: Marcus, Jeffrey
Sent: Tuesday, January 12, 2010 6:09 PM
To: 'r-help at r-project.org'
Subject: Problems connecting with MySQL using odbcDriverConnect (RODBC
package) on Linux
I am sure I'm doing something wrong here but not
2010 Jan 12
0
Problems connecting with MySQL using odbcDriverConnect (RODBC package) on Linux
I am sure I'm doing something wrong here but not sure what.
Our system administrator recently installed UnixODBC and the MyODBC
driver on a Linux box running Linux version 2.6 x86_64.
I have an .odbc.ini file in my home directory with following lines:
[mydb]
Description = MySQL server on my-server
Driver=/usr/lib64/libmyodbc3.so
SERVER=my-server
I can successfully do the following:
2020 Aug 17
1
Installing devtoolset-6 on CentOS 8
Has anybody tried (and succeeded) to get gcc 6.3.1 (or devtoolset-6) to
work on CentOS 8?
In the Animation and Visual Effect industry, gcc 6.3.1 is still the current
recommended compiler (see www.vfxplatform.com), and is required to build
many plugins. Unfortunately, it is not a "minimum requirement"... It is THE
requirement.
So I tried to get it from the vault:
--
sudo dnf
2008 May 05
2
RODBC and schemas
I have found that the "schema.table" syntax used in Postgresql (and
Oracle) does not work directly with RODBC.
This works
library(RODBC)
con<-odbcConnect("mydb")
d<-sqlQuery(con,"select * from meso.trees")
However this does not.
d<-sqlFetch(con,"meso.trees")
Error in odbcTableExists(channel, sqtable) :
?meso.trees?: table not found on channel
2009 Oct 16
2
RODBC sqlSave does not append the records to a DB2 table
I am running R version 2.9.2 on Windows XP OS with RODBC version Version:
1.3-0.
Has anyone out there in the R user community successfully appended records
to a DB2 table on a remote database using the sqlSave function in the RODBC
package? (or by any other means from R?)
I posed a similar question a few months ago and unfortunately, did not
receive a response. I was hoping recent upgrades to
2008 Jul 21
1
RODBC - problems using odbcDriverConnect without DSN
Hi,
I'm trying to use RODBC without having to set up a DSN, using hte
direct connection string in odbcDriverConnect. My connection attempt
looks something like:
> odbcDriverConnect(connection = "SERVER=localhost;DRIVER={/usr/lib/odbc/libmyodbc.so};DATABASE=myDB;UID=reader;PASSWORD=insecure;")
And this returns the message:
Warning messages:
1: In odbcDriverConnect(connection =
2009 Aug 14
2
OT: Fortunate clueless dd chum - lvm recovery
Looks like the chum did not have to lose any data.
Wiping out the MBR and the next 63 blocks apparently only wiped out grub
stage1, partition table, and part of the lvm config data.
I get to try to do a lvm 'recovery' at his expense now but this is my
first time...has anybody ever tried restoring lvm config data back to
the md/pv device?
Cheers,
Christopher
2001 Aug 30
1
lattice
Hello. I know that lattice is still in beta beta but. . .
Nick Ellis wrote to S-news with an example of 'trellis' with several
lines in each panel.
df<-expand.grid(fac1=letters[1:2],x=seq(0,1,0.1),fac2=LETTERS[1:4])
df$y<-df$x*codes(df$fac1)+codes(df$fac2)*df$x^2+rnorm(nrow(df))/3
xyplot(y ~ x | fac2,
groups=fac1,
data=df,
2007 Nov 24
2
truncated fields with RODBC
I'm changing some functions from storing data in
SQLite (using RSQLite) to storing it in PostgreSQL
(using RODBC). When trying to store very long
character fields I get the following message:
> sqlSave(pg, Grids, rownames = FALSE, append =
TRUE)
Warning messages:
1: In odbcUpdate(channel, query, mydata, paramdata,
test = test, verbose = verbose, :
character data truncated in column
2005 Feb 23
1
RODBC type conversion bug
I run R 2.0.1 on Debian and connect to Informix database via RODBC. In
the table below the column "month" is of type char(1). RODBC seems to
be converting this column to boolean if the value is F or T.
This is the data in my table:
id month year
25 F 2005
26 Z 2005
When I select * for id 25 I get
25 FALSE 2005
When I select * for id 16 I get
26 Z