Displaying 20 results from an estimated 400 matches similar to: "crash on multiple queries to postgresql db [solved]"
2009 Sep 11
1
format (?) problems with data imported from postgres
Good day,
I read some data from a PostgreSQL database by a following script:
library(Rdbi)
library(RdbiPgSQL)
# conn becomes an object which contains the DB connection:
conn <- dbConnect(PgSQL(), host="localhost", dbname="BVS",
user="postgres", password = "*******")
query_duj_kal <- dbSendQuery(conn, "select zdroj as well, cas as date,
fe2,
2009 Sep 13
2
zoo plot: yearly marks on X-Axis
On Sun, 2009-07-26 at 13:17 +0200, Poersching wrote:
> stvienna wiener schrieb:
> > Hi all,
> >
> > I am plotting a financial time series, but I need a more detailed X-Axis.
> >
> > Example:
> > x <- zoo(rnorm(1:6000), as.Date("1992-11-11")+c(1:6000))
> > plot(x)
> >
> > The X-Axis is labeled "1995", "2000"
2009 Jun 04
2
RPostgreSQL segfault with LEFT JOIN
Hi,
I recently upgraded to R 2.9.0 on linux x86. After doing so, I switched to the
RPostgreSQL package for interfacing with a postgresql database. I am using
postgresql 8.3.7.
A query that works from the postgresql terminal is causing a segfault when
executed from R.
My sessionInfo, the error message, and the R code used to generate the error
are listed below.
I have noticed that a
2006 Oct 03
1
problem installing RdbiPgSQL for 2.4
I just upgraded R to version 2.4.0 and now I can't install packages
RdbiPgSQL. I used the same procedure I did for previous versions of R !
Actually, last time I installed RdbiPgSQL day before upgrading
but now I got:
downloaded 27Kb
* Installing *source* package 'RdbiPgSQL' ...
creating cache ./config.cache
checking for PQconnectdb in -lpq... no
I could not find your PostgreSQL
2007 Feb 05
1
RdbiPgSQL in R 2.4.1
Hi R-users
I recently downloaded RdbiPgSQL 1.8.0 and Rdbi 1.8.0 from Bioconductor to be
installed under R 2.4.1.
When requiring RdbiPgSQL an error message is showed as follows:
> require(RdbiPgSQL)
Loading required package: RdbiPgSQL
Error in library(package, lib.loc = lib.loc, character.only = TRUE, logical
= TRUE, :
‘RdbiPgSQL’ is not a valid package – installed <
2005 Sep 14
1
maximum string length in RdbiPgSQL and in R
Because my problem involves the RdbiPgSQL package, I sent a message
similar to this one to the Bioconductor list. But while awaiting
moderator approval of my message (because I am not a member of that
list), it occurred to me to send it to R-help as the problem may be more
general than just RdbiPgSQL.
Here's my situation:
I have been using RdbiPgSQL successfully for a year or two. I
2006 Nov 06
1
colnames and get means for the columns with the "same" names
hi,
I have a conversion table for colnames like this:
Probe_ID HUMAN_LLID
1 AF106325_PROBE1 7052
2 NM_019386_PROBE1 7052
3 NM_012907_PROBE1 339
4 AW917796_PROBE1 84196
5 L27651_PROBE1 10864
The Probe_ID contains a list of colnames for another data.frame, say x1.
I need to convert such colnames to another ID's system, HUMAN_LLID by
using the table.
2009 Nov 24
0
Install RPostgreSQL (Mac OSX 10.6)
Dear all, I'm an absolute R-beginner and want to connect to my PostgreSQL DB
(on my local Mac OSX 10.6).
1) I tried to install RPostgreSQL (Package Installer > CRAN (sources)) and
get this log below. There seems to be an issue with libpq, bug I don't have
any clue how to fix this. What can I do?
2) Once this issue is solved, should this code work?
drv <-
2010 Mar 06
2
memory error in for loop
hi,
I have been attempting to run this script and am getting some strange
results. The script connects to a database and retrieves a series of
tables, using sequential sql statements. I have tested all of the sql
statements in the PostGreSQL terminal and they all return the desired
results. I place each table into a list and run a FOR loop for 'i' in
the list. The script generates
2003 Nov 10
0
Rdbi/RdbiPgSQL updates
To get the Rdbi/RdbiPgSQL 1.0.1 interface from BioConductor
functional, I would like to suggest some fixes.
Find patches and the updated packages here:
http://mpa.itc.it/markus/tmp/rdbi/
Changes
Rdbi:
- fixed load of RdbiPgSQL (wrong name)
- fixed dbConnectionInfo() (typo)
RdbiPgSQL:
- fixed table export to PostgreSQL
- added make.names() to polish column names for R usage
2008 Jun 24
4
Find max of a row in data frame (like Excel)
Hi,
Here's the data we have:
> rs[1:5,]
probe_id f1 f2 f3 f4 M A f
1 A_68_P20002076 2 58 0 0 1.51778114 6.344453 59
2 A_68_P20002775 22 8 15 0 0.43419304 5.488819 59
3 A_68_P20005791 43 3 0 0 0.05698666 9.830594 59
4 A_68_P20005805 11 34 0 0 1.71076835 6.624038 59
5 A_68_P20006729 16 44 0 0 0.85498261 6.044229 59
I want rs$f be the max of f1, f2, f3,
2008 Jun 12
3
Problem with rowMeans()
Hi all,
I have a matrix called 'data', which looks like:
> data[1:4,1:4]
Probe_ID Gene_Symbol M1601 M1602
1 A_23_P105862 13CDNA73 -1.6 0.16
2 A_23_P76435 15E1.2 0.18 0.59
3 A_24_P402115 15E1.2 1.63 -0.62
4 A_32_P227764 15E1.2 -0.76 -0.42
> dim(data)
[1]
2006 Mar 02
1
Curious subsetting behavior
I have a simple vector, called tmp that I want to subset based on another
vector called vec. Everything works as expected except for below where the
subsetting returns something other than the original data. Any ideas?
> vec <- c(1,2,3,4,5,59,60,27,32,21)
> tmp
[1] 1.0 1.1 2.0 2.1 2.2 3.0 3.1 4.0 5.0 5.1 6.0 7.0 8.0 8.1
9.0
[16] 9.1 9.2 10.0 10.1 11.0 12.0 13.0 14.0
2010 Sep 08
1
on error execute:
So, i've been writing code in R interfacing with mysql, its been fun and the
documentation has been useful, learning quite a bit.
the only annoying thing i've been encountering is while coding/debugging, my
session gets clogged, especially with sql connections. At the end of the
code i dbDisconnect, but when the script is stopped by an error, the session
stays open.
Usually i'll
2004 Jan 12
1
extract data from a data.frame
Hi,
I'm reading part of a table from postgres, so I'm
getting a data frame.
how can I extract the numerica values so I can
operate on them.
> res <- dbGetResult(mydata)
> str(res)
`data.frame': 5 obs. of 8 variables:
$ cyx.1: num 0.149 -0.278 0.114 0.060 0.109
$ cyx.2: num 0.158 -0.070 0.063 0.149 0.150
$ cyx.3: num 0.052 -0.350 0.114 0.126 0.238
2003 Dec 10
0
RdbiPgSQL and POSIXct
Hi,
Does the Bioconductor library RdbiPgSQL support the POSIXlt and POSIXct (R
time format)?. I tried to import an R data frame which had also some columns
of class POSIXct into PostgreSQL 7.2.1 with the command dbWriteTable without
success.
>str(jame)
`data.frame': 8123 obs. of 27 variables:
$ kat.st : int 1 2 3 4 5 6 7 8 9 10 ...
$ ime : Factor w/ 7867 levels
2008 Oct 03
1
3D scatter, groups, RdbiPgSQL...
hello,
I wish to create some 3d scatter diagrams visualising different grouped
data set by a given field in the database. I tried the scatterplot3d
package, as well as the plot3d and scatter3d functions (both within the
rgl resp. Rcmdr package). My first question is, whether is it possibe to
group data in the scatterplot3d and plot3d, because I did not succeed to
use the groups = ...
2004 Feb 10
0
name space conflict using RMySQL and ROracle
Hello everybody,
could anybody give me a hint how to to use RMySQL and ROracle libraries at the same
time without getting conflict with name spaces?
Because it needs to much time, unloading and reloading the libraries is no solution...
Example:
----------- snip -----------------
library(ROracle)
library(RMySQL)
mysql <- MySQL()
con <- dbConnect(mysql, user=MySQL.name, password=MySQL.pwd,
2003 Feb 06
0
rdbi segmentation fault
hi! i am experiencing the same behaviour explained here:
http://finzi.psych.upenn.edu/R/Rhelp02/archive/2482.html
(i copied the message below)
has anybody found a solution?
here is the code that gives me a segmentation fault
library(Rdbi)
library(Rdbi.PgSQL)
conn <- dbConnect(PgSQL(), dbname = "PGA")
tmp <- "create table test ( expid int, name varchar(128));"
2011 Jun 28
2
connecting R and PostgreSQL
Dear R-helpers,
I'm an absolute beginner using both R and PostgreSQL, but now I have to work with both programs. I need to connect R and my Postgres-database, but every attempt so far has failed (I tried using the RpgSQL package as well as RdbiPgSQL, the first, following this manual (http://code.google.com/p/rpostgresql/) didn't find any drivers for the database (step no. 1) whereas the