Displaying 20 results from an estimated 3000 matches similar to: "RODBC - odbcConnectExcel2007 headers issue"
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 <-
2011 Mar 01
0
odbcConnectExcel2007 creates corrupted files
I tried creating a .xlsx file using odbcConnectExcel2007 and adding a
worksheet with sqlSave. This seems to work, I am even able to query the
worksheet, but when I try opening the file in Excel I get the following
message: "Excel cannot open the file 'test.xlx' because the file format or
file extension is not valid. Verify that the file has not been corrupted and
that the file
2010 Feb 03
1
odbcConnectExcel2007 connection error
Hi all,
Apologies if I violate any posting etiquette - this is my first
submission to the R mailing list. I regularly use
'odbcConnectExcel2007' (from package 'RODBC') to read data from named
ranges in excel workbooks into R. I recently received the following
error message when attempting to set up a connection channel (i.e. ch1
<- odbcConnectExcel2007('path to excel 2007
2009 May 28
4
Read & name multiple excel sheets using RODBC
I'd like to be able to read multiple sheets from an excel workbook and use
the sheet name to name the resulting dataframe using RODBC. at the moment
i've figured out how to do it the long way (see below) but feel sure that
there is a speedier & possibly automatic way to do it in R. i've tried to
run a loop using sqlTables but it seemed to break the connection. unless
i've
2012 Jul 16
1
RODBC connection to locked Excel2010 files
Hi,
I am trying to connect to an Excel2010 file while another user is entering
data. (Obviously it would be better to set up a SQL database, but this is
not an option at this point.). Typically we are not working on the same
sheets. However, if possible I like to read the most current excel file
into R.
RODBC works great as long as the other user has not open the file. I tried:
channel <-
2012 Jan 09
2
RODBC vs gdata
Hi
one col in my Excel file contains many numbers. But on line 3000 and
some other lines are strings like "FG 1". "RODBS" seems to omit this
lines. "gdata" works, but is much slower.
Is this a bug of RODBC or do I apply it wrong?
Example with the same "file.xlsx"
library(RODBC); excel <- odbcConnectExcel2007("file.xlsx")
tab <-
2011 Mar 31
0
Problems reading excel file with RODBC connect
Hello, I am trying to read an Excel file using RODBC connect (its attached)
using the following code:
Data<-odbcConnectExcel2007('acciones_col.xlsx',readOnly=T,)
datos<-sqlFetch(Data,'Bloomberg')
odbcClose(Data)
The file contains stock data downloaded from bloomberg, and it contains five
variables per stock (so every five columns there is an empty column) . As
the
2011 Dec 04
3
RODBC connect to Excel (64-bit Windows 7)
Hi to all.
I have a problem to connect to an Excel database using RODBC.
Namely, I am using 64-bit R 2.14.0, under Windows 7 and I tried following:
library(RODBC)
> channel <- odbcConnectExcel("results.xlsx")
Error in odbcConnectExcel("results.xlsx") :
odbcConnectExcel is only usable with 32-bit Windows # ok this is
clear why it doesn't work
> channel
2010 Jul 13
2
RODBC and Excel 2010 xlsx
Hi List, just to know if the issue is only a problem of mine or if it is a
general issue due to the new MS Office pack. I'm using R 2.11.1 32 bits in a
Windows 7 x64 with the MS office 2010 x64 installed. I can import .xls files
normally (the same way I did with my Excel 2007 32 bits). But the function
odbcConnectExcel2007 isn't able to import .xlsx files now that I have the
new version of
2010 Jan 28
1
Problem associated with importing xlsx data file (Excel 2007)
Hi all,
I have imported xlsx file (Excel 2007) into R using the following scripts.
*library(RODBC)
*
*setwd(".......") *
*query <- odbcConnectExcel2007(xls.file = "GI 2010.xlsx", readOnly = TRUE)
dat <- sqlQuery(query, "select * from [sheet1$]", as.is = TRUE, na.strings =
"exp")*
*dat* contain one column consisting of intergers and characters
2013 Jul 16
2
Importing data by odbcConnectExcel in 64 bit
I have probably an old question.
I have R.3.0.1 installed in 64 bit windows 7. The odbcConnectExcel in RODBC
library does not work. Tried odbcConnectExcel2007 still does not work.
Any ideas.
Thanks
Melissa<-sqlFetch(odbcConnectExcel2007("F:\\Cotton2012\\validation.xlsx"),sqtable
= "Sheet3",
+ na.strings = "NA", as.is = TRUE)
Error in
2008 Oct 28
2
odbcConnectExcel2007
Hi
sorry if this is really basic but I am just starting on R.
Can anyone point me at how to write R objects into Excel 2007 files. I
have seen how to set up a connection to a file through
odbcConnectExcel2007(xls.file, readOnly = FALSE, ...) but it doesn't say
anything on how to write data
Thanks
_____________________________________________________________________
The
2009 Nov 18
3
Re ading multiple Excel 2007 files with a loop
I have several hundred Excel 2007 data files in a folder. I would like to
read every file in a single given folder using a loop.
I have searched the FAQ, the forum archives here, other or older R boards
and the R Import / Export documentation, and have asked some very
knowledgeable R users without learning of a solution. I hope someone here
can help.
I understand that the most common
2009 Jul 08
1
Import xlsx file in Ubuntu 9.04
Hi list,
By the entire last 2 weeks I was looking for a way to directly import xlsx
files to R in a Linux OS (Ubuntu 9.04). I already read the R Import/Export
guide, and I know how to use gdata to import xls files and read.table to
import .csv. My problem is that all data that I receive is in the xlsx
format, and I have to convert all the files to xls.
Well, when I was using Windows Vista OS,
2015 Mar 26
2
Conectividad con Excel
Hola amigos, buenos días
Esto sigue avanzando. Estoy ahora tratando de establecer la conectividad de
R con Excel y he seguido dos viídeos en YouTube de una profesora llamada
Bebilda que se explica muy bien.
Con ambos tengo el mismo problema así que planteo uno de ellos, éste es:
https://youtu.be/_pSJQO_9I4k?list=PL7DA3FDA21A1A6310
Pero os lo explico brevemente:
Cargo el paquete RODBC >
2005 Jan 12
0
RODBC package -- sqlQuery(channel,.....,nullstring=0)stillgives NA's
(1) I do read the posting guide (the fact that I missread o
missunderstood something does not imply not reading)
(2) I could change NAs to 0 (I know) but I have previously (older
versions of R and SQL*Plus) used the same select with the "right" output
(namely with 0s).
(3) AFAIK "strange" is not a negative remark and does not seem to me at
the very least but that is always a
2010 Jul 29
4
reading dates in Excel into R
I am reading dates in Excel2007 into R.
Here are the functions I used:
library(RODBC)
channel<-odbcConnectExcel2007("myfile.xlsx")
tmp<-sqlFetch(channel,"1",as.is=T)
The dates in myfile.xlsx are all in this format: mm/dd/yyyy. But when I read it to R, some columns look like "yyyy-mm-dd 00:00:00", some columns look like "yyyy-mm-dd", and some
2009 Apr 15
1
Writing .xlsx files
Dear all,
I have been looking for possibilities to read and write Excel 2007-files
in and from R.
The 'reading' part is ok through odbcConnectExcel2007 and sqlFetch(RODBC).
For 'writing' I thought of using sqlSave in the same package, but it
does not work (I think because this function starts from an existing
file). Is there a workaround for this, or are there other plausible
2005 Jan 12
1
RODBC package -- sqlQuery(channel,.....,nullstring=0) stillgives NA's
There is something strange in R behaviour (perhaps).
I have run the same select in Oracle SQL*Plus (version 10.1.0.2.0) and
the output comes out with NULLs (which is what it ougth to be).
But in R I still get the same result with NAs (no matter I use
na.strings or nullstring arguments)
An output example follows below:
Using na.string="0" and nullstring="0" (sorry by the
2005 Jan 11
1
RODBC package -- sqlQuery(channel,.....,nullstring=0) still gives NA's
R-help,
I'm using the RODBC package to retrieve data froma ODBC database which
contain NA's.
By using the argument nullstring = "0" in sqlQuery() I expect to
coerce them to numeric but still get NA's in my select.
I'm running on Windows XP
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386,