Displaying 20 results from an estimated 3000 matches similar to: "Creating a new Access database with R"
2010 Feb 11
3
Creating a new Access database with R
I am facing the same problem as well, I would like to code with following concept but wondering how to cope it.
if (*mdb file exist)
{ add new row/col }
else
{ add new *mdb file }
----------------------------------------------------------------------------------------------
From: Uri Shimron <UriShimron_at_optiver.com>
Date: Thu 21 Sep 2006 - 13:27:35 GMT
First of all,
2015 Apr 27
2
Como conectar R con una base de datos Access en Windows 64-bit (RODBC package)
Hola a tod en s,
Tengo un problema a la hora de conectar una base de datos (*.mdb) de Access
a RStudio utilizando windows 64-bit. Con el paquete RODBC utilizo el
siguiente script que devuelve el error que indico:
mdbConnect <- odbcConnectAccess("C:/Users/database.mdb")
Error in
odbcConnectAccess("C:/Users/Isa/FPI-AZTI/JUVENA/Databases/MEGASCOPE_JUVENA2014.mdb")
:
2007 Jan 30
0
calloc bug in RODBC 1.1-7 and later?
I'm trying to load Affy Annotation data from an Access database into R using
RODBC. This has worked fine for quite some time. The bug seems to be
correlated to RODBC versions 1.1-7 and later.
Works fine: R 2.2.0 with RODBC 1.1-4; R 2.3.0 or R 2.4.1 with RODBC 1.1-6
Fails: R 2.3.1 with RDOBC 1.1-7; R 2.4.1 with RODC 1.1-7 or 1.1-8
Details
=====
This works fine:
Version 2.2.0
2010 Mar 10
1
Importing Access 2007 data with ROBC
Hi all,
I'm trying to import Microsoft Access data into R. It looks like I'm
supposed to use the ROBC package, and this works fine with old Access
files (those with an .mdb extension).
However, lovely Microsoft must constantly update their software. Modern
Access files have an .ACCDB extension. I cannot seem to coerce R to import
data from such a file. Any advice?
I've been using
2012 Jul 11
2
How to connect .mdb file
Hi, I'm currently having some problem connect .mdb file into R.
I've installed the RODBC packages and I do the code this way:
channel <- odbcConnectAccess("C:/Users/Documents/XYZ")
channel
and it gave me this :
RODBC Connection 3
Details:
case=nochange
DBQ=C:\USers\JieYi\Documents\NYP\IPP\GCR
Driver={Microsoft Access Driver (*.mdb)}
DriverId=25
FIL=MS Access
2006 Mar 23
0
sqlSave
Dear Tobias,
I finally succeeded in exporting my dataframes from R into Access with
this script:
library(RODBC)
canal <- odbcConnectAccess("D:/Floristique.mdb")
sqlSave(channel=canal, dat=flore, tablename="Floristique", rownames=F,
safer=F, fast=F,
varTypes=c(dates="Date"))
odbcClose(canal)
My problem in exporting my dataframe "flore" seems to
2012 Nov 26
2
puzzling RODBC error
Dear all,
I'm trying to connect to an MSAccess database (ArcGIS personal geodatabase). I keep getting an error about the channel when using sqlQuery(). However, sqlTables() does not complain about the channel and lists all tables in the database. If I try sqlFetch(), then R crashes.
I'm happy to hear suggestions on how to solve this.
Best regards,
Thierry
> MDB <-
2010 Feb 11
0
sqlSave data into multiple *.mdb files
Hi All,
con <- member <- class <- list()
for(i in 1:5)
{ con[[i]] <- odbcConnectAccess(paste("C:/Desktop/Data/source",i,".mdb",sep = '')) #read data from Access files
member[[i]] <- sqlFetch(con[[i]],'member') #get table data from *.mdb files
observe[[i]] <- sqlFetch(con[[i]],'observe') #get table data from *.mdb
2007 Nov 13
2
Query an Access database based on a date attribute (Tudor Bodea)
Tudor Bodea asked:
>In this context, I try to get all the records for which market is atl-bos,
>competitor is delta and dd is 2007-11-20 (first record above). To do this I used
>># channel <- odbcConnectAccess("test.mdb")
>>res <- sqlQuery(channel, "select * from test_table where market = 'atl-bos'
>>and competitor = 'delta' and dd =
2007 Nov 12
2
Query an Access database based on a date attribute
Dear useRs,
I would like to query an Access database through R based on a date attribute
but, unfortunately, I fail to do so. For example, the table test_table of the
test.mdb looks like:
ID cd market competitor dd price
1 1 2007-11-20 atl-bos delta 2007-11-20 210
2 2 2007-11-20 atl-bos delta 2007-11-21 190
3 3 2007-11-20 atl-bos delta 2007-11-22
2018 Feb 15
3
help (Crear bucle para generar un dataframe a partir de datos .mdb)
Hola,
Tengo un conjunto de bases de datos de una encuesta industrial para
diferentes años (1995-2014). Las bases de datos están en formato .mdb. A su
vez, cada base de datos tiene 3 tablas con una variable "ID" común (la
"llave") para vincular las tablas.
Quiero realizar análisis estadísticos para analizar la evolución de ciertas
variables.
Quiero armar un dataframe que
2009 May 09
1
sqlSave()
Hi all: I have created a MS Access table named 'PredictedValues' through the statement below:
myDB <- odbcConnectAccess("C:/Documents and Settings/Owner/Desktop/Rpond Farming.mdb",uid="admin",pwd="")
sqlSave(myDB,PredictedValues,rownames=FALSE)
close(myDB)
But if I run the code again with new values I get the message below:
Error in sqlSave(myDB,
2011 Dec 07
1
import a dataset from Access database into R
Hi
I was trying to import a dataset from access database
into R
My code looks like below
>library(RODBC)
>setwd("//STATESFPSOP1/docs/CRMPO/DEPT/Retail
PD")
>channel<-odbcConnectAccess("MortgagePD.mdb")
>Mdata<-sqlFetch(channel, "MortgagePD")
But I got error messages saying
Error: cannot allocate vector of
size 27.9 Mb
In addition: Warning
2007 Nov 13
1
R: Query an Access database based on a date attribute
It seems that Access needs that you surround the dates with a # symbol.
You probably need something like.
res <- sqlQuery(channel, "select * from test_table where market = 'atl-bos'
and competitor = 'delta' and dd = #2007-11-20#")
Hope this helps,
Stefano
-----Messaggio originale-----
Da: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org]Per
2010 Oct 22
1
RODBC: data base with decimal point ","
Dear R-users,
I am working with R version 2.10.1 and package RODBC Version: 1.3-2 under windows.
Say I have a table "testtable" (in an Access data base) with 3 columns and 1 row that looks like this:
X Y Z
0012345 42 42,1
The columns are of these types: X - character, Y - Long Integer, Z - Decimal.
I use RODBC to get these data into R:
> library(RODBC)
>
2012 Feb 24
1
looping over string of frames when importing with 'sqlFetch' from a Microsoft Access database
Dear R-list,
I am trying to import (all) frames from a Microsoft Access database as individual data frames in a fancy loop, but I'm having troubles figuring out how to use the 'sqlFetch' from the RODBS package in a loop (mostly because I can't figure out how to loop over elements (I came from stata)
I would very much appreciate if anyone on the list could help me solve this
2010 Nov 25
1
RODBC
Hi,
I am running the RODBC examples form the help guide. I am trying to
UPDATE a table in an Access data base but I am having an error.
library(RODBC)
library(termstrc)
path = getwd()
setwd(getwd())
dbName = "data.mdb"
pathdbname = paste(path,"/",dbName,sep="")
accesChannel = odbcConnectAccess(pathdbname, uid = "", pwd = "")
2010 Jul 15
6
Error cargar datos ACCESS
Hola a todos,
estoy intentendo cargar unos datos contenidos en una tabla de ACCESS, por lo que ejecuto los siguientes comandos
dir<-"C:/Users/D/Desktop/"
library(RODBC)
cn<-odbcConnectAccess(paste(dir1,"datos.mdb",sep=""))
pero me da el siguiente error
Warning messages:
1: In odbcDriverConnect(con, ...) :
[RODBC] ERROR: state IM002, code 0, message
2008 Apr 30
1
+ and - in RODBC : no longer considered factors
I have a large Sweave report that reads data from a database file. Some of
the columns are 1-character strings containing only +, - or NA. An example
for such a table is shown below, and can be downloaded for easier testing
from
http://www.menne-biomed.de/uni/test.zip
(For security reasons, the file is zipped)
table test
hp hp1
+ a
- +
library(RODBC)
channel =
2010 Aug 31
2
Error: cannot allocate vector of size 198.4 Mb
Hi, All
I have a problem of R memory space.
I am getting "Error: cannot allocate vector of size 198.4 Mb"
------------------------------
I've tried with:
> memory.limit(size=2047);
[1] 2047
> memory.size(max=TRUE);
[1] 12.75
> library('RODBC');
> Channel<-odbcConnectAccess('c:/test.MDB'); # inputdata:15 cols, 2000000