Re: [R] ALARM!!!! Re: regarding large csv file import

2006-10-28 Thread gyadav
hi All, ok fine got it. The design of R is such that it will work only if data fits in the main memory. This issue has been taken up many times but it seems it would be very difficult to change the core code hmmm. ok fine. hence if i want to work then i will have to either partition the data

Re: [R] How to best divide table by table

2006-10-28 Thread Serguei Kaniovski
For example, year X1958 X1973 X1981 X1986 X1995 X2004 X2007 1 QMT 12 41 45 54 62 232 255 2 Belgium 2 5 5 5 5 12 12 3 France 4 10 10 10 10 29 29 year X1958 X1973 X1981 X1986 X1995 X2004 X2007 1 QMT 12 41 45 54 62 232 255 2 Belgium 9054483 9741700 9859000 9859000 10137000 10418000 10497000 3

Re: [R] How to best divide table by table

2006-10-28 Thread Peter Dalgaard
Serguei Kaniovski [EMAIL PROTECTED] writes: For example, year X1958 X1973 X1981 X1986 X1995 X2004 X2007 1 QMT 12 41 45 54 62 232 255 2 Belgium 2 5 5 5 5 12 12 3 France 4 10 10 10 10 29 29 year X1958 X1973 X1981 X1986 X1995 X2004 X2007 1 QMT 12 41 45 54 62 232 255 2 Belgium 9054483

Re: [R] Measurements of 3000 criminals

2006-10-28 Thread Jean lobry
Hallo everyone, excuse me if this is not a genuine R question but I do not know where to ask else. Referring to e.g. https://stat.ethz.ch/pipermail/r-help/2004-December/062114.html I wonder if these measurements of 3000 criminals (raw data) are available anywhere. At least I

[R] What determines the order of rows in a lattice barchart?

2006-10-28 Thread Geoff Russell
Hi, What determines the order of the rows in a barchart? Cheers, Geoff. Here is my code, and the data follows. If I have z in alpha order, the barchart is in some order I can't determine. I originally tried rownames(twater)~twater$Cat, but the chart wasn't in rownames(twater) order either.

Re: [R] Debugging R's code: boxplot.stats

2006-10-28 Thread Duncan Murdoch
On 10/27/2006 11:06 PM, Matthew Walker wrote: Hi everyone, I think I have found a minor issue with the R function boxplot.stats. But before I make such a rash comment, I'd like to check my facts by fixing what I think is the problem. However, why I try to do this, R does not behave as I

Re: [R] Censored Brier Score and Royston/Sauerbrei's D

2006-10-28 Thread Torsten Hothorn
On Fri, 27 Oct 2006, Inman, Brant A. M.D. wrote: System: R 2.3.1 on a Windows XP computer. I am validating several cancer prognostic models that have been published with a large independent dataset. Some of the models report a probability of survival at a specified timepoint, usually at

Re: [R] Measurements of 3000 criminals

2006-10-28 Thread Ted Harding
On 28-Oct-06 Jean lobry wrote: Hallo everyone, excuse me if this is not a genuine R question but I do not know where to ask else. Referring to e.g. https://stat.ethz.ch/pipermail/r-help/2004-December/062114.html I wonder if these measurements of 3000 criminals (raw data) are

[R] xlsReadWritePro trial available

2006-10-28 Thread Hans-Peter
Hi, I just finished xlsReadWritePro, a package that is - like the free xlsReadWrite - capable to read and write native Excel files. The Pro version is a shareware package and adds features such as: • Sheet handling (select/insert/copy/delete/ren.) • Select regions (columns, rows, cells or area)

Re: [R] Package development on Windows - latest guidance?

2006-10-28 Thread Gabor Grothendieck
There are pointers to information in the links section of: http://code.google.com/p/batchfiles/ and some XP batch files that facilitate using R and building packages on XP. Regarding LaTeX, use MiKTeX. On 10/28/06, Michael Prager [EMAIL PROTECTED] wrote: I would like to start building R

[R] building RMySQL under Mac OS X

2006-10-28 Thread Your EPEC ICT Team - Ricardo Rodríguez
Hi, Please, is out there anybody using RMySQL under Mac OS X? I'm trying to build it without much success. How must I add/locate mysql.h and lmysqlclient library? Thanks for your help, Ricardo -- Ricardo Rodríguez Your EPEC ICT Team __

Re: [R] Package development on Windows - latest guidance?

2006-10-28 Thread Duncan Murdoch
On 10/28/2006 10:49 AM, Michael Prager wrote: I would like to start building R packages under Windows XP. I have programming experience and a minimal but working knowlege of many Unix (-like) programming tools. The package functions (for now) will be from R source, not C or Fortran. I've

[R] Package development on Windows - latest guidance?

2006-10-28 Thread Michael Prager
I would like to start building R packages under Windows XP. I have programming experience and a minimal but working knowlege of many Unix (-like) programming tools. The package functions (for now) will be from R source, not C or Fortran. I've installed Rtools, Perl, the MS hhc, and so on. I am

[R] comparing 2 lists

2006-10-28 Thread Milton Cezar Ribeiro
Hi there, Could someone help to compare to list. I do something like: list1-c(1,3,6,8,9) list2-c(3,5,1,0) mathlist-NULL for (i in list1) { for (j in list2) { if (i==j) mathlist-c(mathlist,i) }} mathlist Is there a more elegant way to solve this question?

Re: [R] Package development on Windows - latest guidance?

2006-10-28 Thread Michael Prager
Thanks to Gabor G., Duncan M., and Hong O. for helpful replies. I've made some progress, but have two questions. Can anyone explain *how* R CMD searches for latex? I have provided a batch file (shell script) and and alias (I use a Windows command shell with aliasing) that each provide the

Re: [R] Package development on Windows - latest guidance?

2006-10-28 Thread Duncan Murdoch
On 10/28/2006 1:08 PM, Michael Prager wrote: Thanks to Gabor G., Duncan M., and Hong O. for helpful replies. I've made some progress, but have two questions. Can anyone explain *how* R CMD searches for latex? It doesn't: R CMD runs a script, the script searches for latex. If you want to

Re: [R] Package development on Windows - latest guidance?

2006-10-28 Thread Duncan Murdoch
On 10/28/2006 1:08 PM, Michael Prager wrote: Thanks to Gabor G., Duncan M., and Hong O. for helpful replies. I've made some progress, but have two questions. Can anyone explain *how* R CMD searches for latex? I have provided a batch file (shell script) and and alias (I use a Windows

Re: [R] Package development on Windows - latest guidance?

2006-10-28 Thread Gabor Grothendieck
On 10/28/06, Michael Prager [EMAIL PROTECTED] wrote: Thanks to Gabor G., Duncan M., and Hong O. for helpful replies. I've made some progress, but have two questions. Can anyone explain *how* R CMD searches for latex? I have provided a batch file (shell script) and and alias (I use a

Re: [R] What determines the order of rows in a lattice barchart?

2006-10-28 Thread Deepayan Sarkar
On 10/28/06, Geoff Russell [EMAIL PROTECTED] wrote: Hi, What determines the order of the rows in a barchart? That's not a well defined question, as barchart is generic, and methods are free to choose their own order (and much more). See below for an answer for the formula method, which is what

Re: [R] Incorrect 'n' returned by survfit()

2006-10-28 Thread Thomas Lumley
On Wed, 25 Oct 2006, yongchuan wrote: I've a data set with 6 rows of data representing 6000+ distinct loans. I did a coxph() regression on it (see call below), but a subsequent survfit() call on the coxph object is almost certainly wrong. It gives n=6 when it should be more like 6000+

Re: [R] comparing 2 lists

2006-10-28 Thread jim holtman
I think you want the set operations: list1-c(1,3,6,8,9) list2-c(3,5,1,0) union(list1, list2) [1] 1 3 6 8 9 5 0 intersect(list1, list2) [1] 1 3 On 10/28/06, Milton Cezar Ribeiro [EMAIL PROTECTED] wrote: Hi there, Could someone help to compare to list. I do something like:

[R] subsetting, aggregating and zoo

2006-10-28 Thread antonio rodriguez
Hi, Having an zoo object I can subset it to obtain the days where I have the values within some range: is.zoo(z) TRUE subset(z[,1], z[,1]=5 z[,1]= 10) #Yields: Year(day) 1988(13) 1988(14) 1988(16) 1988(20) 1988(21) 1988(22) 1988(25) 1988(26) 7.973946 9.933518 7.978227 7.512960

Re: [R] subsetting, aggregating and zoo

2006-10-28 Thread Gabor Grothendieck
On 10/28/06, antonio rodriguez [EMAIL PROTECTED] wrote: Hi, Having an zoo object I can subset it to obtain the days where I have the values within some range: is.zoo(z) TRUE subset(z[,1], z[,1]=5 z[,1]= 10) #Yields: Year(day) 1988(13) 1988(14) 1988(16) 1988(20) 1988(21) 1988(22)

Re: [R] subsetting, aggregating and zoo

2006-10-28 Thread antonio rodriguez
Gabor Grothendieck escribió: On 10/28/06, antonio rodriguez [EMAIL PROTECTED] wrote: Hi, Having an zoo object I can subset it to obtain the days where I have the values within some range: is.zoo(z) TRUE subset(z[,1], z[,1]=5 z[,1]= 10) #Yields: Year(day) 1988(13) 1988(14) 1988(16)

[R] (kein Betreff)

2006-10-28 Thread Johannes Hüsing
Frank Harrell rote in a message dating from Oct 8th: n.group is an argument to latex.default in the Hmisc package I must admit that I can't find it in the function head, which reads on my installation: function (object, title = first.word(deparse(substitute(object))), file = paste(title,

Re: [R] subsetting, aggregating and zoo

2006-10-28 Thread Gabor Grothendieck
Try this: # test data x - c(1:4, 6:8, 10:14) z - zoo(x, as.Date(x)) # idx is 1 for first run, 2 for second run, etc. idx - cumsum(c(1, diff(z) != 1)) # starts replaces each time with the start time of that run # ends is similar but for ends starts - time(z)[match(idx, idx)] ends -

Re: [R] Package development on Windows - latest guidance?

2006-10-28 Thread Michael Prager
Thanks again to D. M. and G. G. for help. I have built a small package successfully, although latex is not working quite right. I might be able to get it working, but I'm unclear what the latex compiler is used for when building a package. Otherwise, I'll just install MikTeX and treat it as a

[R] labelling of horizontal axis in acf function

2006-10-28 Thread Leeds, Mark \(IED\)
this one is not a false alarm like my previous message. i have cut and paste the code below so if anyone could run it would be appreciated. basically, my question is why the horizontal axis of the acf plot is labelled with such huge numbers when the labels should be 1 through 10 since may

Re: [R] labelling of horizontal axis in acf function

2006-10-28 Thread Gabor Grothendieck
Its because of the frequency. The lower the frequency number the higher will be the numbers on the scale axis. as.ts(aggfxdata[,bid]) Time Series: Start = 1144713660 End = 1144716960 Frequency = 0.0167 [1] 118.4800 NA 118.4760 NA 118.4600 118.4367 118.4171 118.3810 [9]

[R] A quesiton on data manipulation

2006-10-28 Thread Tong Wang
Hi, I have a data set (data frame) describing some features of the students in a high school in the following format: Stu IDYear feature 1 feature 2 . 1001 1990 1001 1991 1001 1992 1002 1990 1002 1991

Re: [R] (kein Betreff)

2006-10-28 Thread Frank E Harrell Jr
This is a bug that has now been fixed. Until a new release of Hmisc appears see the following to get a corrected version of latex( ): http://biostat.mc.vanderbilt.edu/twiki/bin/view/Main/LatestRFunctions - you will need getLatestSource('latex') Frank Johannes Hüsing wrote: Frank Harrell

Re: [R] A quesiton on data manipulation

2006-10-28 Thread jim holtman
?complete.cases On 10/28/06, Tong Wang [EMAIL PROTECTED] wrote: Hi, I have a data set (data frame) describing some features of the students in a high school in the following format: Stu IDYear feature 1 feature 2 . 1001 1990 1001

Re: [R] Automatic File Reading [Broadcast]

2006-10-28 Thread Wensui Liu
Andy, First of all, thanks for your solution. When I test your code, it doesn't work. I am not sure if I miss something. Here is the code I tested: flist-list.files(path = file.path(, c:\\),pattern=[.]csv$) csvlist-lapply(flist, read.csv, header = TRUE) Here is the error: Error in file(file,

Re: [R] plot.POSIXct plot.POSIXlt

2006-10-28 Thread Spencer Graves
Your example is not self contained, and I was unable to generate an example that produced the warning messages you've mentioned. Have you tried 'options(warn=2)', then running your example? This will turn the warning into an error. Then you might be able to get something from

Re: [R] Automatic File Reading [Broadcast]

2006-10-28 Thread ronggui
2006/10/29, Wensui Liu [EMAIL PROTECTED]: Andy, First of all, thanks for your solution. When I test your code, it doesn't work. I am not sure if I miss something. Here is the code I tested: flist-list.files(path = file.path(, c:\\),pattern=[.]csv$) First of all, I think the command should be

Re: [R] Organisation of medium/large projects with multiple analyses

2006-10-28 Thread Daniel Elliott
Mark, It sounds like your data/experiment storage and organization needs are more complicated than mine, but I'll share my methodology... I'm still new to R, but have a fair experience with general programming. All of my data is stored in postgresql, and I have a number of R files that