[R] Database reorganization

2005-03-12 Thread Bernardo Rangel Tura
Hi people, I need reorganization several databases. I would like to know if that is possible in R. My problem is like that: original data base: Age x1980 x1981 1 5 8 3 7 9 5 9 15 7 11 20 future data base yearage x 19801 5

[R] data frame excerption

2005-03-12 Thread Oleg Bartunov
Hello, is't possible to get excerptions of data frame using some contstraints, something like q1 = q[q$V31] ? Regards, Oleg _ Oleg Bartunov, sci.researcher, hostmaster of AstroNet, Sternberg Astronomical Institute,

Re: [R] Database reorganization

2005-03-12 Thread Gabor Grothendieck
Bernardo Rangel Tura tura at centroin.com.br writes: : original data base: : : Age x1980 x1981 : 1 5 8 : 3 7 9 : 5 9 15 : 7 11 20 : : future data base : : yearage x : 19801 5 : 19803 7 : 19805 9 : 1980

Re: [R] data frame excerption

2005-03-12 Thread Ales Ziberna
Yes it is! you should write: q1 - q[q$V31,] Since the data.frame has two indices, the first one indicating rows, which is what you need! Regards, Ales Ziberna - Original Message - From: Oleg Bartunov oleg@sai.msu.su To: R-help R-help@stat.math.ethz.ch Sent: Saturday, March 12, 2005 1:29

[R] any book and tutorial about how to manipulate data with R/S+

2005-03-12 Thread Wensui Liu
In real world, data manipulation might take even longer time and more effort than statistical analysis and modeling. Does anyone know a good book and tutorial about data manupulation? Thank you so much. -- WenSui Liu, MS MA Senior Decision Support Analyst Division of Health Policy and Clinical

Re: [R] warning message when using anova

2005-03-12 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Hi can someone help me with the following warning message I got when I used two way anova: Warning messages: 1: Models with response NULL removed because response differs from model 1 in: anova.lmlist(object, ...) 2: Models with response NULL removed because response

Re: [R] any book and tutorial about how to manipulate data with R/S+

2005-03-12 Thread Thomas Schönhoff
Hallo, Am Samstag, 12. März 2005 15:08 schrieb Wensui Liu: In real world, data manipulation might take even longer time and more effort than statistical analysis and modeling. Does anyone know a good book and tutorial about data manupulation? Thank you so much. Well, it would be much easier

Re: [R] R: LIST function and LOOPS

2005-03-12 Thread Uwe Ligges
Clark Allan wrote: hi thanx for the help. i dont want to use matrices. i solve my problem, see the example below. the set.seed is used because in my actual application i need to generate INDEPENDENT variables. will this ensure that the variables are independent? Why do you want to set.seed()

Re: [R] data frame excerption

2005-03-12 Thread Uwe Ligges
Oleg Bartunov wrote: Hello, is't possible to get excerptions of data frame using some contstraints, something like q1 = q[q$V31] ? Yes, but you have to use the indexing matrix-like (see the manuals): q1 - q[q$V3 1, ] Uwe Ligges Regards, Oleg

[R] New user of R on Mac OS X - Please help

2005-03-12 Thread Depiereux Constant
Brand new Mac OS X user, I am transfering my R stuffs from my windows machine. When porting some of my functions, I got messages such as : 2005-03-12 15:37:52.456 R[673] *** NSTimer discarding exception 'NSRangeException' (reason '*** NSRunStorage, _NSBlockNumberForIndex(): index (3607)

Re: [R] difficulties with the save.image() function

2005-03-12 Thread Uwe Ligges
Tracy Bergemann wrote: Dear list, I've had difficulty saving my workspace to an .RData file. This causes considerable frustration as it means that I have to regenerate my analysis every time I want to update it. For microarray data in particular, this can be quite time consuming. I'm saving my

Re: [R] Errors reading data file?

2005-03-12 Thread Uwe Ligges
Chris Bergstresser wrote: Hi all -- I tried loading a data file with the following command: data = read.table(filename.txt, header = TRUE, sep = ,) This appeared to work fine, except it silently skipped 400 records (out of 1200). It turns out, some of the text fields included quotes,

Re: [R] xlab cex bug in Lattice/grid and multipage-output (Windows only?)

2005-03-12 Thread Uwe Ligges
Dieter Menne wrote: The following problem seems to be Windows-specific. Deepayan informed me that it cannot be reproduced on platform i386-pc-linux-gnu. - library(lattice) trellis.device(png, file=sepal%02d.png,color=T, theme=col.whitebg) p=xyplot(Sepal.Length + Sepal.Width ~ Petal.Length +

Re: [R] R-help:loading data from text file and viewing it in persp

2005-03-12 Thread Uwe Ligges
Lakshmi Dhevi Baskar wrote: Hi All i would like to get some help on how to use the persp() for 3d surface plotting with the data from txt file. it has format like x1 y1 z1 x2 y2 z2 x3 y3 z3 and so on...sometimes the txt file data may be very large also.. how could i load

Re: [R] plotting

2005-03-12 Thread Uwe Ligges
Owen Buchner wrote: I have two questions for you. Firstly I'm having troubles trying to plot more then 1 graph. I'm attempting to make a plot with 9 panels, but i have no clue what type of code to use. See ?par and its argument mar, or ?layout, or even better the latice package. Secondly i

Re: [R] R CMD check errors

2005-03-12 Thread Uwe Ligges
Chris Jackson wrote: In my experience these are usually signs of an error in your NAMESPACE file, such as a function name in the NAMESPACE which does not match the function name in the package. If the NAMESPACE is not the problem (is it???) there are several other points - one has to look closer.

[R] MLE for two random variables

2005-03-12 Thread Carsten Steinhoff
Hello, I've the following setting: (1) Data from a source without truncation (x) (2) Data from an other source with left-truncation at threshold u (xu) I have to fit a model on these these two sources, thereby I assume that both are drawn from the same distribution (eg

Re: [R] MLE for two random variables

2005-03-12 Thread Spencer Graves
Just to make sure, do you have any information on events when xu u, i.e. do you know how many such events and you know u for those events? If yes, then that's called censoring, not truncating. For that, the survival package seems pretty good. I found the information in Venables and

[R] Multiple histograms in one chart

2005-03-12 Thread Werner Wernersen
Hi! I've searched quite a while and this is probably a very easy question: How do I prevent a new hist() histogram from clearing the chart window before drawing? I would like to have several histograms simply drawn on each other in one chart... Thanks for your help! Werner In use: win2ksp4

Re: [R] any book and tutorial about how to manipulate data with R/S+

2005-03-12 Thread Wensui Liu
I am sorry that I did not state my question clearly. What I mean by data manipulation includes sort, merge, aggregate, transpose, data export and import, format, date time handle, and so on, which might be not important to statistician. I have use SAS and SPSS for a while and really want to

[R] RODBC, IODBC and Mac OS X

2005-03-12 Thread Depiereux Constant
Dear All, As some of you in the archive, i am experiencing problems in using RODBC with IODBC on Mac OS X Panther. I am currrently facing two problems. The first one is apparently linked with IODBC (according to returned R error message) although testing the database access from IODBC manager

Re: [R] any book and tutorial about how to manipulate data with R/S+

2005-03-12 Thread Deepayan Sarkar
On Saturday 12 March 2005 14:42, Wensui Liu wrote: I am sorry that I did not state my question clearly. What I mean by data manipulation includes sort, merge, aggregate, transpose, data export and import, format, date time handle, and so on, which might be not important to statistician. I

Re: [R] RODBC, IODBC and Mac OS X

2005-03-12 Thread Sean Davis
Have you looked at these two packages that, together, provide Postgres access and do not require ODBC? I have found them quite useful and I use them on Panther: http://www.bioconductor.org/repository/release1.5/package/html/Rdbi.html

[R] generalized negative binomial

2005-03-12 Thread Erin M Simpson
I am looking for code that allows for a more flexible negative binomial model (similar to Stata's gnbreg). In particular, I am looking to be able to model the ancillary shape parameter in terms of a series of covariates. So if, y[i] ~ poisson(mu[i]) mu[i] = exp(x[i]beta +

Re: [R] any book and tutorial about how to manipulate data with R/S+

2005-03-12 Thread Dirk Eddelbuettel
On 12 March 2005 at 15:42, Wensui Liu wrote: | I am sorry that I did not state my question clearly. | | What I mean by data manipulation includes sort, merge, aggregate, | transpose, data export and import, format, date time handle, and so | on, which might be not important to statistician. R

Re: [R] any book and tutorial about how to manipulate data with R/S+

2005-03-12 Thread Michael Grant
Wensui, Here is an answer from a different perspective. Reading between the lines, you may be involved in 'remedial' data preparation at times. Depending on exactly what kind of tasks you are talking about you MAY be well advised to work in a database--that is why they exist. It just depends on

[R] How to get object value in R Active memory

2005-03-12 Thread Michael S
Dear all R-helpers, I understand all the actions of operation in R objects stored in the active memory of the computer.Could I do some opreation in active memory,what does the structure of active memory looks like? for exmple : in R : a- 2 ; capture.output(a) ; I can get the output and change

[R] How to get object value in R Active memory

2005-03-12 Thread Michael S
Dear all R-helpers, I understand all the actions of operation in R objects stored in the active memory of the computer.Could I do some opreation in active memory,what does the structure of active memory looks like? for example : in R : a- 2 ; capture.output(a) ; I can get the output and change