Displaying 20 results from an estimated 100 matches similar to: "sqlFetch and factor conversion"
2010 Mar 05
2
How to assign week numbers to a time-series
Hello everyone,
My progress has stalled on finding a way of creating a somewhat complicated variable to add to my existing dataframe and I am hoping one of you could help me out. The dataframe below contains only a fraction of the data of my complete dataframe, but all of the variables. What I want to do is add another variable named 'WEEK' to this dataframe that is assigned 1 for row 1
2010 Aug 13
1
assign multiple variables at once
R Experts,
I would like to create a series of variables without having
to assign a separate line of code for each new variable. My dataframe (DF) contains
two groups of linked variables (ESP1:ESP9) and (ECRL1:ECRL9). Within ESP1:ESP9 are
abbreviated species codes (full dataframe contains 26 codes). ECRL1 represents the
number of species x in variable ESP1 harvested, and so on through ESP9 and
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
2004 Nov 09
1
colnames argument in sqlFetch backwards? (PR#7355)
Full_Name: Bert Gunter
Version: 2.0.0 patched
OS: Win2000
Submission from: (NULL) (192.12.78.250)
The TRUE/FALSE options of the colnames argument in sqlFetch (RODBC) seem to be
reversed, at least for .xls files.
## z is a connection to an xls workbook opened by odbcConnectExcel()
> dat<-sqlFetch(z,'SuccessRates',colnames=FALSE)
> dat[1:5,]
RecID Name Run Grams Lost Run
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
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
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()
2011 Feb 04
1
read.table error
R experts,
I am working with a fairly large data set comprised of 563 rows by 116 columns including several
different modes. I have been unable to read in the data set completely using the read.table
function and the RGui (i.e. nearly half the total number of rows are missing from the data set
along with the column names). The data does read in fully using Tinn-R's Rterm;
however, at several
2014 Oct 30
1
Firewall ports with v 3.5.2 grumble time
Hi,
I have a requirement to run my gluster hosts within a firewalled section of network and where the consumer hosts are in a different segment due to IP address preservation, part of our security policy requires that we run local firewalls on every host so I have to get the network access locked down appropriately.
I am running 3.5.2 using the packages provided in the Gluster package repository
2010 Jul 20
1
ifelse() and missing values in test conditions
R experts,
I have been unable to get the following ifelse statement to work as desired when applied
to my data frame.
Example:
DF$ANYEF <- with(DF,ifelse(PSOUGHT1=='ANY'|PSOUGHT2=='ANY'|PSOUGHT3=='ANY',PEFF,0))
##### this statement will be replicated 16 times for 16 unique _EF variables ###
Basically, I want each ANYEF for each row to equal the corresponding row
2018 May 16
0
CentOS 7.5 (1804) and NetworkManager
On 15 May 2018 at 16:55, Michael Lampe <lampe at gcsc.uni-frankfurt.de> wrote:
> Gnome's control-center now requires NetworkManager-wifi. But it's only a
> soft requirement, no shared libs involved.
>
> To keep your workstation NM-free, you want to install a dummy package that
> provides NetworkManager-wifi but actually contains nothing, ideally before
> updating to
2014 Mar 15
3
RH fucks up quite often recently
Latest really rude show stoppers were/are:
el6:
- librsvg2: your private fork bomb for gnome
- kernel: scheduler completely broken on numa systems
- qt: kde unusable when going up from -26 to -28
el5:
- firefox hangs on quit after latest ESR update
- (totem plugins no longer work too)
What I am using an enterprise distro for??
-Michael
PS: I'm only wondering :)
2011 Dec 28
3
Is Biarch with 6.x now dead?
I'm experimenting with 6.2 now. Things seem to be really great so far!
Distribution closure is one of my favourite pets. So I tried to install
everything.
I found only one problem, but that's another (minor) thing.
But I found almost nothing under /usr/lib.
So, Biarch is really dead?
Funny! A couple of years back, I finally opted for CentOS instead of
Debian just because of Biarch