search for: br44114

Displaying 20 results from an estimated 50 matches for "br44114".

2005 Jan 11
5
global objects not overwritten within function
Dear useRs, I have a function that creates several global objects with assign("obj",obj,.GlobalEnv), and which I need to run iteratively in another function. The code is similar to f <- function(...) { assign("obj",obj,.GlobalEnv) } fct <- function(...) { for (i in 1:1000) { ... f(...) ...obj... rm(obj) #code fails without this line } } I don't understand
2007 Dec 27
1
A function for random test based on longest run (UNCLASSI FIED)
...longest length of runs of same events. To be more specific, for example, from a series, HHTHTTTTHHH, the number of runs are 5, and the longest length of runs of the same events is 4. I'll check for the website you mentioned below. Kyong -----Original Message----- From: bogdan romocea [mailto:br44114@gmail.com] Sent: Thursday, December 27, 2007 12:08 PM To: kyong.ho.park@us.army.mil Cc: r-help Subject: RE: [R] A function for random test based on longest run (UNCLASSIFIED) > require(tseries) > ?runs.test Also, take a look at dieharder, it implements a large number of randomness tests...
2005 Jun 06
3
Reading huge chunks of data from MySQL into Windows R
Dear List, I'm trying to use R under Windows on a huge database in MySQL via ODBC (technical reasons for this...). Now I want to read tables with some 160.000.000 entries into R. I would be lucky if anyone out there has some good hints what to consider concerning memory management. I'm not sure about the best methods reading such huge files into R. for the moment I spilt the whole
2005 Jul 21
3
Rprof fails in combination with RMySQL
Dear R community, I tried to optimized my R code by using Rprof. In my R code I'm using MySQL database connections intensively. After a bunch of queries R fails with the following error message: Error in .Call("RS_MySQL_newConnection", drvId, con.params, groups, PACKAGE = .MySQLPkgName) : RS-DBI driver: (could not connect mylogin@mydatabase on dbname "myDB"
2004 Oct 11
5
read "4-jan-02" as date
Dear R users, I have a column with dates (character) in a data frame: 12-Jan-01 11-Jan-01 10-Jan-01 9-Jan-01 8-Jan-01 5-Jan-01 and I need to convert them to (Julian) dates so that I can sort the whole data frame by date. I thought it would be very simple, but after checking the documentation and the list I still don't have something that works. 1. as.Date returns the error below. What am I
2005 Sep 08
1
RMySQL installation problem on FC4 x86_64
Dear useRs, I'm having a hard time installing RMySQL on a FC4 x86_64 box (R 2.1.0 and MySQL 4.1.11-2 installed through yum). After an initial configuration error ("could not find the MySQL installation include and/or library directories") I managed to install RMySQL with # export PKG_LIBS="-L</usr/lib64/mysql> -lmysqlclient" # R CMD INSTALL RMySQL_0.5-5.tar.gz
2005 Oct 07
1
The R Graph Gallery {was boxplot statistics}
...esen at medisin.uio.no; bogdan romocea Subject: [R] The R Graph Gallery {was boxplot statistics} >>>>> "Romain" == Romain Francois <francoisromain at free.fr> >>>>> on Thu, 06 Oct 2005 23:23:12 +0200 writes: Romain> Selon bogdan romocea <br44114 at gmail.com>: >> A related comment - don't rely (too much) on boxplots. They show only >> a few things, which may be limiting in many cases and completely >> misleading in others. Here are a couple of suggestions for plots which >> you may find more u...
2005 Oct 10
1
decreasing performance of for() loop
Dear useRs, I'm wondering why the for() loop below runs slower as it progresses. On a Win XP box, the iterations at the beginning run much faster than those at the end: 1%, iteration 2000, 10:10:16 2%, iteration 4000, 10:10:17 3%, iteration 6000, 10:10:17 98%, iteration 196000, 10:24:04 99%, iteration 198000, 10:24:24 100%, iteration 200000, 10:24:38 Is there something that can be done about
2005 Jun 06
1
AW: Reading huge chunks of data from MySQL into Windows R
...g SELECT COUNT(DISTINCT userid) on MySQL will take approx. 15 min. Doing length(unique(userid)) will take (almost) no time... So I think the other way round will serve best: Do everything in R and avoid using SQL on the database... -----Urspr??ngliche Nachricht----- Von: bogdan romocea [mailto:br44114 at yahoo.com] Gesendet: Montag, 6. Juni 2005 16:27 An: Dubravko Dolic Cc: r-help at stat.math.ethz.ch Betreff: RE: [R] Reading huge chunks of data from MySQL into Windows R You don't say what you want to do with the data, how many columns you have etc. However, I would suggest proceeding in t...
2004 Dec 12
2
errors when trying to rename data frame columns
Dear R users, I need to rename the columns of a series of data frames. The names of the data frames and those of the columns need to be pulled from some vectors. I tried a couple of things but only got errors. What am I missing? #---create data frame dframes <- c("a","b","c") assign(dframes[2],data.frame(11:20,21:30)) #---rename the columns cols <-
2006 Oct 05
1
unexpected behavior of boxplot(x, notch=TRUE, log="y")
A function I've been using for a while returned a surprising [to me, given the data] error recently: Error in plot.window(xlim, ylim, log, asp, ...) : Logarithmic axis must have positive limits After some digging I realized what was going on: x <- c(10460.97, 10808.67, 29499.98, 1, 35818.62, 48535.59, 1, 1, 42512.1, 1627.39, 1, 7571.06, 21479.69, 25, 1, 16143.85, 12736.96,
2005 Mar 11
3
XML to data frame or list
Dear useRs, I have a simple/RTFM question about XML parsing. Given an XML file, such as (fragment) <A>100</A> <B>23</B> <C>true</C> how do I import it in a data frame or list, so that the values (100, 23, true) can be accessed through the names A, B and C? I installed the XML package and looked over the documentation... however after 20 minutes and a couple of
2006 Oct 09
1
boxplot, notches, etc.
...QR/sqrt(n)) > approx IQR). When log="y" this causes an error. Below are several reproducible examples, some discussion, and a patch against calc.R. Please feel free to say "this is just cosmetic/isn't an issue, go away" ... cheers Ben Bolker bogdan romocea <br44114 <at> gmail.com> writes: > > A function I've been using for a while returned a surprising [to me, > given the data] error recently: > Error in plot.window(xlim, ylim, log, asp, ...) : > Logarithmic axis must have positive limits > > After some digging I r...
2005 Sep 01
4
Linux Standalone Server Suggestions for R
Hi All, My group is looking for any suggestions on what to purchase to achieve the most powerful number crunching system that $50k can buy. The main application that will be used is R so input on what hardware benefits R most will be appreciated. The requirements are that it be a single standalone server (i.e. not a cluster solution), and it that must be able to run unix/linux. If
2005 Jun 08
2
get level combinations from "by" list
Dear useRs, Given this code I end up with a list of class "by": a <- sample(1:5,200,replace=TRUE) b <- sample(c("v1","v2","v3"),200,replace=TRUE) c <- sample(c(11,22,33),200,replace=TRUE) data <- runif(200) grouped <- by(data,list(a,b,c),function(x) {c(min=min(x),max=max(x), median=round(median(x),digits=2),mean=round(mean(x),digits=2))})
2005 Mar 18
6
Basic questions about RMySQL
Hello, Please forget me if I am asking something that is well documented. I have read documentation but there are points that are not clear for me. I am not expert in R nor Databases, but if someone direct me to a tutorial, I will appreciate it.. 1. In my understanding, I can install and use RMySQL withouth having to install MySQL in my PC, to have access to and to create new tables . Is this
2006 Apr 24
2
regression modeling
Hi, there: I am looking for a regression modeling (like regression trees) approach for a large-scale industry dataset. Any suggestion on a package from R or from other sources which has a decent accuracy and scalability? Any recommendation from experience is highly appreciated. Thanks, Weiwei -- Weiwei Shi, Ph.D "Did you always know?" "No, I did not. But I believed..."
2005 Apr 06
3
looking for a plot function
Dear useRs, I have a data frame and I want to plot all rows. Each row is represented as a line that links the values in each column. The plot looks like this: dfr <- data.frame(A=sample(1:50,10),B=sample(1:50,10), C=sample(1:50,10),D=sample(1:50,10)) xa <- 10*1:4 plot(c(10,40),c(0,50)) for (i in 1:nrow(dfr)) { lines(xa,dfr[i,],pch=20,type="o") } Things get more complicated
2005 Mar 25
4
Gmail invitation
Hello R users! I just found out that I have 49 invitations for Gmail (gmail.google.com). I have been using it now for a while and is really nice. Don't forget 1 GB for free. I will invite those who respond to this mail by FIFO. -- Lep pozdrav / With regards, Gregor Gorjanc ------------------------------------------------------------------------ University of Ljubljana Biotechnical
2005 Feb 25
4
Temporal Analysis of variable x; How to select the outlier threshold in R?
For a financial data set with large variance, I'm trying to find the outlier threshold of one variable "x" over a two year period. I qqplot(x2001, x2002) and found a normal distribution. The latter part of the normal distribution did not look linear though. Is there a suitable method in R to find the outlier threshold of this variable from 2001 and 2002 in R?