Displaying 20 results from an estimated 200 matches similar to: "colnames argument in sqlFetch backwards? (PR#7355)"
2004 Nov 09
1
RODBC bug or doc error in sqlFetch on xls files (PR#7354)
R 2.0.0 patched under win2000. MS Office Excel 2003. ODBC Drivers?
This may not come as a surprise -- sqlFetch() (and perhaps other ?) appear
not to handle table/worksheet names with spaces in them in Excel tables. I
was not able to find documentation that specifically mentioned this,
although the Help pages vaguely hinted that there might be difficulty with
Excel's "peculiar
2003 Dec 15
2
Slightly OT and mildly insane: Modems through VoIP :-))
Hi,
First off, let me state that _YES, I am fully aware that what I am doing is
insane, prone to major havoc and bad for general health_ :-))
Scenario: My GF needs an analog modem to use with her banking software
(sodding backs don't supply a decent web-application for company use). I am
experimenting to see if we can get it to work (albeit slow) trough our ATA186
talking g711 to
2013 Apr 02
0
sqlFetch works but sqlQuery doesn't
I've been having some issues with sqlSave, and I think I've found an clue
that may identify the problem. In the code at http://pastebin.com/W6UGKep9,
I connect to a Netezza instance, make a simple table, and query it.
Despite sqlSave succeeding without error, sqlQuery tells me that the table
doesn't exist. Also, when I query the database outside of R, I see that
the table doesn't
2013 Apr 03
1
sqlSave writes, but only for sqlFetch
I've been having some issues with sqlSave, and I think I've found an clue
that may identify the problem. In the code at
http://pastebin.com/vTAKt4bL<http://pastebin.com/W6UGKep9>,
I connect to a Netezza instance, make a simple table, and query it.
Despite sqlSave succeeding without error, sqlQuery tells me the table
doesn't exist. Also, when I query the database outside of R, I
2008 Jun 26
1
RODBC, sqlFetch error when accessing Excel
This is about R 2.7.0 and related packages on windows NT.
I have a mixture of numeric and character data and empty cells in an
Excel spreadsheet with several tabs that I'm trying to read with
sqlFetch from RODBC.
The data that is returned by sqlFetch is unfortunately not identical
to the source data in that in columns with character values in the
first few rows the subsequent rows of that
2002 Aug 28
1
RODBC: sqlFetch and its argument sqtable
Calling function "sqlFetch" in library(RODBC) and specifying a character
string as 2nd argument, I get an error I don't understand:
library(RODBC)
channel <- odbcConnect("mydatabase.mdb", case="msaccess")
sqlFetch(channel, "mytable")
# this works fine
tabname <- "mytable"; sqlFetch(channel, tabname)
# this gives an error:
# Error in
2007 Jan 16
1
RODBC: sqlQuery is successful, but a similar sqlFetch returns error
Greetings guRus --
I have successfully queried a large (24,445 rows by 281 cols.) in-house
database using the following RODBC query (without the line breaks)
testout <- sqlQuery(channel, "select idSchedule,EXCL_Total from
dbo.vwC1198_2006_RawData_With_CMPL_EXCL")
This returns a dataframe of 24445 rows and two columns (as intended),
but the following command
testout
2011 Jun 14
0
sqlFetch and factor conversion
R users,
Hello, I used sqlFetch to import a data table from MS Access 2007 and I set as.is = TRUE to
prevent character vectors from becoming factors. However, I can't figure out how to prevent
the $ operator from being added by sqlFetch to the end of each character vector(e.g. TD$ and SITE$).
This causes subsequent parts of my code not to work and also results in some behavior that I
2012 Oct 30
1
sqlFetch doesn't read the whole objects.
Hi everyone,
I connected a data in FileMaker server with odbcConnect.
When I call the data "CANCERS" using sqlFetch, it looks okay.
However, the number of obs was different with the actual number.
If I read the same data from Microsoft Access, there are 656 obs. in it but
srt() shows me 600 obs.
Does anyone know why this happened and how to read all obs. from R?
Thank you in advance.
2011 Mar 03
1
sqlFetch (RODBC) question
Dear all,
I've used RODBC a lot to read in files created in MS excel and access but
found a strange problem today: a variable in my data file contained both
numbers and text; sqlFetch would set text within a row of numbers to NA; but
if first 5 or 6 rows would be text then all numbers would be read in as NA.
con<-odbcConnectExcel("xample.xls") #the file is attached or at
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
2005 Oct 10
3
sqlFetch on MySQL-DB
Dear all,
I successfully set up a local MySQL-database. Connecting via RODBC is
not problem, the same in fetching 3 of 4 tables. But trying to
connect to table 4 fails.
> author<-sqlFetch(test,"author")
Error in fromchar(unclass(x)) : character string is not in a standard
unambiguous format
In principle I understand that error message, but I don't know any
solution.
2002 May 11
2
RODBC sqlFetch
Hi,
Thanks for showing me how to use RODBC and odbcConnect.
Now works nicely. The question I've got now is:
noms <- list.files(pattern=".DBF")
# removing extension names:
noms <- sapply(noms, function(x) as.character(strsplit(x,".DBF")) ,
USE.NAMES=F)
for (i in 1:length(noms)) {
s <- sqlFetch(bdades, noms[i])
# etc.
}
But it seems that sqlFetch()
2007 Jul 18
0
sqlSave, ...colnames=F, using "odbcConnectExcel" .... I still get colnames in top row of exprted sheet
I am trying to save an R data.frame as an Excel sheet.
I do NOT want the column names saved into row 1.
I set colnames=F.
However, it still seems that the colnames are saved into row 1.
Is this a bug? Or am I coding incorrectly and.or misunderstanding this feature?
#example code:
sheet = "c:/test2.xls"
temp=data.frame(matrix(data=NA,nrow=10,ncol=15))
temp[1,1] =
2014 May 14
0
S3 - how to implement "colnames<-"
Have a class for which I would like to provide a "colnames<-.myclass"
function so that
colnames(myintsance) <- c("a","b","c")
can be called.
Witold
--
Witold Eryk Wolski
[[alternative HTML version deleted]]
2011 Mar 07
0
Error in colnames: target of assignment expands to non-language object
Hi there,
I cannot find a detailed explanation to the following error message:
> colnames(matrix(1:10, ncol = 2)) <- c("X", "Y")
Error in colnames(matrix(1:10, ncol = 2)) <- c("X", "Y") :
target of assignment expands to non-language object
However, when I do the following things, the error message disappear:
> z <- matrix(1:10, ncol =
2010 Jul 28
1
How get colnames and rownames in Rcpp method?
Hi all,
How get colnames and rownames in Rcpp method?
attecthed file : RGui.exe capture
my work environment :
R version : 2.11.1
OS : WinXP Pro sp3
Thanks and best regards.
Young-Ju, Park
from Korea
[1][rKWLzcpt.zNp8gmPEwGJCA00]
[@from=dllmain&rcpt=r%2Dhelp%40r%2Dproject%2Eorg&msgid=%3C20100728211143%2EH
2016 Apr 05
1
Heatmap Colnames
Hello,
please see below my code for a heatmap. Unfortunately my column names do not completely appear. Can you please send me the appropriate code to visualise them?
Many Thanks!
Nils
library(GMD)
dat<-data.frame(EntryA=as.numeric(c(4.24,3,1.66,1.28,1.2,-1.32,-1.88)), EntryB=as.numeric(c(4.16,4.82,-1.82,-3.02,0.99,1.1,-3.31)))
2018 May 19
1
Bug on qr.coef when qr is created by a zero matrix with colnames and all y equals zero
Dear maintainers,
I'm reporting a bug in qr.coef that mishandles the colnames of matrix. A minimal reproducible example is as follows:
x <- cbind(rep(0, 10), rep(0, 10))
y <- rep(0, 10)
q <- qr.default(x)
qr.coef(q, y)
[1] NA NA
If x has colnames, then qr.coef will end up with an error:
x <- cbind(x1 = rep(0, 10), x2 = rep(0, 10))
y <- rep(0, 10)
q <- qr.default(x)
2004 Aug 02
0
lapply drops colnames
Seems like you got your input and output mixed up a bit...
> From: Jack Tanner
>
> I want to iterate over a data frame by columns, and as I'm processing
> each column I want to know its column name.
>
> > a <- as.data.frame(list(1,2,3))
> > colnames(a) <- c("a", "b", "c")
> > colnames(a)
You must have the two lines