Displaying 7 results from an estimated 7 matches for "ahz001".
Did you mean:
a0001
2009 Feb 27
4
Optimize for loop / find last record for each person
I want to find the last record for each person_id in a data frame
(from a SQL database) ordered by date. Is there a better way than
this for loop?
for (i in 2:length(history[,1])) {
if (history[i, "person_id"] == history[i - 1, "person_id"])
history[i, "order"] = history[i - 1, "order"] + 1 # same person
else
history[i,
2010 Feb 23
1
installing ROCR/gplots packages blows up memory
When I try to install the ROCR package (which requires gplots) on
Ubuntu 9.10 (Xubuntu Karmic Koala) 64-bit on R version 2.9.2
(2009-08-24), it eats up all my RAM (2GB) and swap (4GB) and keeps
allocating more memory until Linux's out of memory (OOM) killer kills
the perl process. This problem is special to Ubuntu because I can
install other packages (such as party) on this Ubuntu system, and
2007 Jun 28
0
UW-IMAP conversion part 2
FWIW, the Dovecot 1.0.1 convert plugin works with all my UW-IMAP
mboxes moved to ~/mail. At least that shows that my system otherwise
works. Also, I wrote a script to move the mboxes and preserve the
IMAP subscriptions. (I hope the list accepts the attached script.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: move_mail.sh
Type: application/x-sh
Size: 1750
2009 Mar 01
0
How to create temporary table in MySQL
Creating a temp table isn't completely intuitive with MySQL 5 and R
2.8..1, but it can be done.
> library(RMySQL)
Loading required package: DBI
> con <- dbConnect(dbDriver("MySQL"), dbname = "foo", user="me",password="secret")
> x<- data.frame(1:10)
> colnames(x) <-c("x")
> dbWriteTable(con, "#x", x,
2009 Mar 01
1
Temporary tables with Microsoft SQL?
I can create a temp table with MySQL and R DBI[1], but I don't see how
to do the same with Microsoft SQL 2005 and RODBC. R 2.8.1 creates the
table, but then it can never see it. I'm looking to avoid replacing
the convenience functions like sqlSave().
[1] https://stat.ethz.ch/pipermail/r-help/2009-March/190033.html
> library(RODBC)
> channel <-
2007 Jun 28
0
convert plugin problem from UW-IMAP
Though there are conversion scripts, I'd like to give the convert
plugin a chance. I have Dovecot 1.0.1 on Trustix Secure Linux 2.2
(Linux 2.4.27), and we had UW IMAP 2002e. Dovecot seems to work OK
(e.g. I can add copy messages to it), but things break when I activate
the convert plugin.
The Wiki suggests
convert_mail = mbox:~/:INBOX=/var/mail/%u # <--- locally changed to
2009 Mar 03
2
preparing data for barplot()
What is the best way to produce a barplot from my data? I would like
the barplot to show each person with the values stacked
val1+val2+val3, so there is one bar for each person When I use
barplot(data.matrix(realdata)), it shows one bar for each value
instead.
To post here, I created an artificical data set, but it works fine.
fakedata <- as.data.frame(list(LETTERS[1:3]))
colnames(fakedata)