Re: [R] When calling external C-function repeatedly I get differentresults; can't figure out why..

2006-03-09 Thread Frede Aakmann Tøgersen
Not an expert in programming either, but to me it seems like you've forgotten to initialize the variable tr. It just picks up garbage from allocated memory previously initialized by other processes. Med venlig hilsen Frede Aakmann Tøgersen -Oprindelig meddelelse- Fra: [EMAIL

Re: [R] problem installing RNetCDF

2006-03-09 Thread Prof Brian Ripley
You forgot to tell us you are running MacOS X. Looks like a problem with your compiler installation (and are you using a pre-compiled R from CRAN and an incompatible compiler?). The installation procedure is complicated because the system dependencies need to be checked. It works well under

Re: [R] memory limits in Windows

2006-03-09 Thread Prof Brian Ripley
Is your OS set to allow 3GB users address space for processes? Since you are running a 32-bit executable under `Windows XP-64' I don't know if that is possible or how to do it, so please ask whoever advised you to buy that OS. You might want to send some sample code to the mgcv maintainer to

Re: [R] How to plot the xaxis label at 45 degree angle?

2006-03-09 Thread Carlos Ortega
Hello, Check under par() the option srt and las. Although the way to rotate the labels is via manipulating the axis() of your plot separately. Regards, Carlos Ortega. On 3/8/06, Lisa Wang [EMAIL PROTECTED] wrote: Hello there, I would like to plot a graph with the x axis's label displayed

Re: [R] Debugging a program written in the R language

2006-03-09 Thread Prof Brian Ripley
On Wed, 8 Mar 2006, Liaw, Andy wrote: [...] Now, Roger Peng has kindly made available a note on debugging R code: http://www.biostat.jhsph.edu/~rpeng/docs/R-debug-tools.pdf There is also a new chapter in the `Writing R Extensions' manual in the R-devel version of R (to be R 2.3.0). So now is

Re: [R] coding problems

2006-03-09 Thread Prof Brian Ripley
Please look at the help page for arima.sim(). You first argument is being matched to 'rand.gen', and is not a function. I suspect you meant to call arima(). On Tue, 7 Mar 2006, (s) Richard Nuttall wrote: hi, I am trying to fit an ARIMA model to some time series data, I have used

Re: [R] Making an S3 object act like a data.frame

2006-03-09 Thread Prof Brian Ripley
On Tue, 7 Mar 2006, hadley wickham wrote: I tend to have to use trial and error myself. Here is another possibility. That's got the subsetting solved, so here's the next challenge lm(x ~ y, z) Error in as.data.frame.default(data) : cannot coerce class myobj into a data.frame

Re: [R] 'less' for R?

2006-03-09 Thread Florence Combes
you can also use str(data.frame) which allows you to access the structure of your object. Florence. On 3/8/06, Federico Calboli [EMAIL PROTECTED] wrote: Hi All, is there an equivalent of the Unix command 'less' (or 'more'), so I can look at what's inside a data.frame or a matrix without

[R] Multivariate Autoregressive Model calibration and residual testing

2006-03-09 Thread Zebouni, Stephane \(Exchange\)
Hi, I am using the mAr package to calibrate an Multivariate model (size 3, order 12). I am trying to do the two following things: 1. I would like to calibrate the model using not a single time series, but several of them: each time series should be seen as one independent realisation

[R] how to make some characters in the xlab of a plot to be superscripted or subscript?

2006-03-09 Thread Jing Yang
Dear R-users, I am trying to make my plot nicer. Does anyboby know how to make some characters in the xlab of a plot to be superscripted or subscript? ? for example m3/s in the x-axis label, how to make 3 supersripted? Best,Jing __

[R] Linking Rblas

2006-03-09 Thread Rau, Roland
Dear all, when making a DLL via Rcmd SHLIB is there a way to link against a library such as Rblas (I am on a Windows platform) on a case to case basis? I played a bit around with some self-written C-code which should call the function 'dasum' defined in Blas.h. I encountered the following

[R] R + calculations on clusters

2006-03-09 Thread Benjamin Otto
Dear community, if I install R locally as some user on a server without root rights, will R be cabable of performing calculations on a cluster spreading the job on several cpu's and nodes? Or will R just simulate that it is doing so while just using one cpu in reality? regards Benjamin

Re: [R] Linking Rblas [under Windows]

2006-03-09 Thread Prof Brian Ripley
Yes, lots of packages link to Rblas. The help page for SHLIB tells you Please consult section 'Creating shared objects' in the manual 'Writing R Extensions' for how to customize it (for example to add 'cpp' flags and to add libraries to the link step) and for details of

Re: [R] POSIX time zone codes

2006-03-09 Thread Prof Brian Ripley
On Tue, 7 Mar 2006, Jason Horn wrote: Thank you again Gabor, that did the trick. Any thoughts on where I go go for a reference for these time codes? Where did you get CDT6CST from? Or is this just one of those things that is common knowledge in UNIX circles. To the R developers: I

Re: [R] R + calculations on clusters

2006-03-09 Thread Sean Davis
On 3/9/06 5:58 AM, Benjamin Otto [EMAIL PROTECTED] wrote: Dear community, if I install R locally as some user on a server without root rights, will R be cabable of performing calculations on a cluster spreading the job on several cpu's and nodes? Or will R just simulate that it is doing

Re: [R] Linking Rblas [under Windows]

2006-03-09 Thread Rau, Roland
Dear Prof. Ripley, thank you very much. It works now absolutely fine using a Makevars file with the contents you suggested. Thanks again, Roland -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 12:09 PM To: Rau, Roland Cc:

Re: [R] how to make some characters in the xlab of a plot to be superscripted or subscript?

2006-03-09 Thread Sundar Dorai-Raj
Jing Yang wrote: Dear R-users, I am trying to make my plot nicer. Does anyboby know how to make some characters in the xlab of a plot to be superscripted or subscript? ? for example m3/s in the x-axis label, how to make 3 supersripted? Best,Jing See ?plotmath. plot(1:10, xlab =

Re: [R] how to make some characters in the xlab of a plot to be superscripted or subscript?

2006-03-09 Thread Petr Pikal
Hi see ?plotmath # not tested expression(paste(m^3, /s)) but I do not know how / is printed. HTH Petr On 9 Mar 2006 at 11:48, Jing Yang wrote: Date sent: Thu, 9 Mar 2006 11:48:45 +0100 From: Jing Yang [EMAIL PROTECTED] To: r-help

[R] Error (Anova)

2006-03-09 Thread Erwan Alba
Hello I realized Anova repeated mesur And I have result following: summary(a) Error: indiv Df Sum Sq Mean Sq F value Pr(F) Alt 2 28.377 14.188 63.5236 2e-16 *** Site 9 75.238 8.360 37.4279 2e-16 *** Espèce1 1.002 1.002 4.4867

Re: [R] power and sample size for a GLM with Poisson response variable

2006-03-09 Thread Ken Beath
The problem with the simulation is with the second group where there is a high probability of obtaining all zeroes for the sample and this is causing problems with the Wald statistics you are using to check for a difference. Here is an example. Browse[1] summary(res) Call: glm(formula =

[R] how to use the randomForest and rpart function?

2006-03-09 Thread Tim Howard
Michael - I recall reading something Breiman wrote that said essentially don't skimp on the number of trees - they are cheap to build and it makes for a better model. Also, look at your error rates (using plot), and make sure you run enough trees so that the error settles down. You'll likely

[R] Identifying or searching for labels in a hclust/dendrogram/heatmap

2006-03-09 Thread michael watson \(IAH-C\)
Hi Sorry if this is in the help :-S I've looked at example(dendrogram) and though it gives some indication of what I want, it doesn't do all. OK, so here is what I want to do: draw a tree, and then have an action, on user-click, to either draw a sub tree or a plot of the data. I also want

[R] Numerical Mathematics Consortium

2006-03-09 Thread Rau, Roland
Dear all, I found a link to the Numerical Mathematics Consortium http://www.nmconsortium.org/index.aspx Their rationale can be summarized (as far as I understood) by the paragraphs which I copied from their homepage and pasted below. Maybe this could be of interest also for the development of R?

Re: [R] Identifying or searching for labels in a hclust/dendrogram/heatmap

2006-03-09 Thread Sean Davis
On 3/9/06 7:47 AM, michael watson (IAH-C) [EMAIL PROTECTED] wrote: Hi Sorry if this is in the help :-S I've looked at example(dendrogram) and though it gives some indication of what I want, it doesn't do all. OK, so here is what I want to do: draw a tree, and then have an action,

Re: [R] Making an S3 object act like a data.frame

2006-03-09 Thread hadley wickham
I'm guessing this is pretty much impossible to get around, because there is no way to tell eval how to deal with myobj type objects, and lm only dispatches based on the type of the first argument. Did you write an as.data.frame method? From ?model.frame My as.data.frame is :

[R] substituting values

2006-03-09 Thread Stefan Semmeling
dear list, i have a matrix with missing values like 1234x x2222 222x2 the x stands for the missing value. i have to substitute it to NA substitute or replace didn´t work out, as they are for vectors only however matrix[,i] also didn´t work.

Re: [R] substituting values

2006-03-09 Thread Chuck Cleland
X - matrix(c( 1, 2, 3, 4, x, x, 2, 2, 2, 2, 2, 2, 2, x, 2), ncol=5, byrow=TRUE) X.new - matrix(as.numeric(X), ncol=ncol(X)) or X.new - apply(X, 2, function(x){replace(x, x == x, NA)}) Stefan Semmeling wrote: dear list, i have a matrix

Re: [R] substituting values

2006-03-09 Thread TEMPL Matthias
One way: A - matrix(round(rnorm(20)), ncol=4) A[2,1] - x A[which(A == x, arr.ind=TRUE)] - NA A - matrix(as.numeric(A), ncol=dim(A)[2]) Best, Matthias -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Stefan Semmeling Gesendet: Donnerstag,

Re: [R] POSIX time zone codes

2006-03-09 Thread Prof Brian Ripley
On Wed, 8 Mar 2006, Don MacQueen wrote: I would have suggested US/Central, by analogy with US/Pacific which I use on my unix-like Mac OS X 10.3.9 system. I don't know what might be common knowledge in UNIX circles, but here's a bit of information from my system. It has a directory named

Re: [R] substituting values

2006-03-09 Thread Stefano Calza
On Thu, Mar 09, 2006 at 08:44:27AM -0500, Chuck Cleland wrote: ChuckX - matrix(c( 1, 2, 3, 4, x, Chuck x, 2, 2, 2, 2, Chuck 2, 2, 2, x, 2), Chuck ncol=5, byrow=TRUE) Why not: X[X==x] - NA mode(X) - numeric ## to get a numeric matrix Btw if you

[R] lsa and Rstem?

2006-03-09 Thread Michael Kubovy
Dear r-helpers, I can't get lsa to run because: library(lsa) Loading required package: Rstem Error in library(pkg, character.only = TRUE, logical = TRUE, lib.loc = lib.loc) : 'Rstem' is not a valid package -- installed 2.0.0? In addition: Warning message: cannot create HTML package

Re: [R] Debugging a program written in the R language

2006-03-09 Thread Robert Burrows
Thomas, This is what I use for writing R programs. I use it with Linux but adapting it for Windows shouldn't be that much of a problem for us MIT guys. In ~/.Rprofile (so it gets loaded every time I start R) I have myedit - function(object) { system(if [ ! -d $HOME/stat-misc/Rsrc ]; then

Re: [R] lsa and Rstem?

2006-03-09 Thread Dave Atkins
Michael-- I had emailed Duncan Lang about this a while back (the maintainer of Rstem). He gave me the following suggestion (which worked for me with R v2.2.1 and Windows XP): install.packages(Rstem, repos = http://www.omegahat.org/R;) cheers, Dave Dear r-helpers, I can't get lsa to run

Re: [R] Making an S3 object act like a data.frame

2006-03-09 Thread Gabor Grothendieck
Can you create a small self contained reproducible example that does not work? The reproducible example I provided earlier on this thread worked fine. One idea is to check what the class is of the output of your .GGobiCall. If it were of class ggobiDataset then it would in turn be calling

[R] help about TYPE III SS

2006-03-09 Thread justin bem
Hi, I am very confused about those note that I found in this web page about TYPE III SS in ANOVA. In my mind Type III is not useful when there are interaction. Can someone help me ? web site : http://www.xlstat.com/fr/support/tutorials/ano2.htm __

Re: [R] help about TYPE III SS

2006-03-09 Thread Liaw, Andy
I suppose you're referring to the sentence (or whatever it corresponds to in the French version you cited): This means that the order in which the variables are selected will not have any effect on the values in the Type III SS. The Type III SS is generally the best method to use to interpret

Re: [R] Identifying or searching for labels in a hclust/dendrogram/heatmap

2006-03-09 Thread michael watson \(IAH-C\)
Hi Sean Thanks for the help, but I really wanted to do this in R :) Any suggestions? Mick From: Sean Davis [mailto:[EMAIL PROTECTED] Sent: Thu 09/03/2006 1:01 PM To: michael watson (IAH-C); r-help Subject: Re: [R] Identifying or searching for labels in a

Re: [R] Debugging a program written in the R language

2006-03-09 Thread Earl F. Glynn
Prof Brian Ripley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 8 Mar 2006, Liaw, Andy wrote: So now is a very good time for people to offer further information/suggestions for that chapter. This may be useful: Mark Bravington, Debugging Without (Too Many) Tears, R News,

[R] HCLUST subroutine question -- FORTRAN DO loops

2006-03-09 Thread David Emmith
Shown below is most of the FORTRAN subroutine named HCLUST. My question concerns the DO loop labeled as '10'. What happened to its CONTINUE statement? I will assume that after FLAG(I)=.TRUE. is executed that control returns to DO 10 I=1,N. Am I correct? Dave C

Re: [R] HCLUST subroutine question -- FORTRAN DO loops

2006-03-09 Thread Peter Dalgaard
David Emmith [EMAIL PROTECTED] writes: Shown below is most of the FORTRAN subroutine named HCLUST. My question concerns the DO loop labeled as '10'. What happened to its CONTINUE statement? I will assume that after FLAG(I)=.TRUE. is executed that control returns to DO 10 I=1,N. Am I

Re: [R] Making an S3 object act like a data.frame

2006-03-09 Thread hadley wickham
Can you create a small self contained reproducible example that does not work? The reproducible example I provided earlier on this thread worked fine. I wish I could, and I'm very grateful for the help, but because the data is an external pointer it's not easy to make a self-contained example.

[R] Call user written R functions in C

2006-03-09 Thread Xuehong.Sun
I have written some R functions and want to call them in C. Is there any way to do it? I have read through the Writing R Extensionsdocument. It seems that the only R functions that we can call in C is wrapped in Rmath.h or by embedding R.dll. Thanks. [[alternative HTML version

[R] count pixels of same color in pixmap object?

2006-03-09 Thread Christian Jost
Dear all, I try to figure out how to use R to count the number of pixels of the same color in some gray-level picture. I managed to read it in either tiff or jpeg format, but the returned pixmap object keeps its information out of (my) reach. Is there an easy way to tabulate the different

Re: [R] count pixels of same color in pixmap object?

2006-03-09 Thread Roger Bivand
On Thu, 9 Mar 2006, Christian Jost wrote: Dear all, I try to figure out how to use R to count the number of pixels of the same color in some gray-level picture. I managed to read it in either tiff or jpeg format, but the returned pixmap object keeps its information out of (my) reach. Is

[R] Error with write.table

2006-03-09 Thread mark salsburg
I'm having this error when I try to output out a gene expression data frame Error in file(file, ifelse(append, a, w)) : unable to open connection In addition: Warning message: cannot open file 'SAMPLES.txt' when issuing the command: write.table(SAMPLES, file = SAMPLES.txt)

Re: [R] Error with write.table

2006-03-09 Thread Peter Dalgaard
mark salsburg [EMAIL PROTECTED] writes: I'm having this error when I try to output out a gene expression data frame Error in file(file, ifelse(append, a, w)) : unable to open connection In addition: Warning message: cannot open file 'SAMPLES.txt' when issuing the command:

Re: [R] Making an S3 object act like a data.frame

2006-03-09 Thread Gabor Grothendieck
I think the problem is that your ggobiDataset objects are also data.frame objects. They must NOT be. For example, note how the following example fails once we add data.frame to the class vector of x: The reason is that ordinary inheritance is not used by model.frame; rather, it uses

[R] Suppress legend in plotting groupedData

2006-03-09 Thread Marc Bernard
Dear All, I would be grateful if you can tell how can I suppress the legend (automatically created) when I plot a groupedData. suppose that I have data farme df_0 which contains the following columns: ID represents the clusters, t represents time of observation, Y: the variable

[R] tcltk loading in R-2.2.1 from src

2006-03-09 Thread Patrice Seyed
Hi, Having trouble loading tcltk in R 2.2.1 built from source. ./configure, make, make check, and make install run ok. library(tcltk) Error in firstlib(which.lib.loc, package) : Tcl/Tk support is not available on this system Error in library(tcltk) : .First.lib failed for 'tcltk'

Re: [R] RES: survival

2006-03-09 Thread Thomas Lumley
On Wed, 8 Mar 2006, Paulo Brando wrote: summary(model.fit) # just one species from one treatment shown below Call: survfit(formula = Surv(time, censo) ~ treatment + species, data = wsuv) treatment=0, species=1 time n.risk n.event survival std.err lower 95% CI upper 95% CI

Re: [R] tcltk loading in R-2.2.1 from src

2006-03-09 Thread Erik Iverson
Patrice - I had a very similar problem using TCL/TK 8.3. Below is the email I sent to my computing group at work about how I fixed it. Note that since my TCL/TK header (.h) files were in an odd location, the first step probably isn't relevant for you. But I bet the second step is.

[R] Need help on Coxph

2006-03-09 Thread Gao Zhang
Hi all, I have a dataset which includes 84 rows and 4313 columns. Starting from the 2nd row, each row represents a patient. The 1st column is for arrayID 2nd column is for time 3rd column is for cancer 4th column is for patientID

[R] R2.2.1-patched build failed with PGI 6.1 on x86-64

2006-03-09 Thread Liaw, Andy
Hi All, While attempting to build R-patched using the Portland Group compiler suite on our dual Opteron 250 box running Scyld 29cz5 (based on RH, kernel 2.4.29), I get: make[5]: Leaving directory `/home/andy/Rbuild/R221-pgi/src/library/tools/src' make[5]: Entering directory

Re: [R] Suppress legend in plotting groupedData

2006-03-09 Thread Deepayan Sarkar
On 3/9/06, Marc Bernard [EMAIL PROTECTED] wrote: Dear All, I would be grateful if you can tell how can I suppress the legend (automatically created) when I plot a groupedData. suppose that I have data farme df_0 which contains the following columns: ID represents the clusters, t

Re: [R] R2.2.1-patched build failed with PGI 6.1 on x86-64

2006-03-09 Thread Liaw, Andy
For some reason I had to see my own post to realize my stupidity... Defining PG_HOME _before_ running the configure solved the problem. Sorry for wasting the bandwidth. Andy From: Liaw, Andy Hi All, While attempting to build R-patched using the Portland Group compiler suite on our dual

Re: [R] Multiple logistic regression

2006-03-09 Thread Antti Arppe
In addition to the multinom(nnet) function mentioned below there is some literature on how one can divide such polytomous problems into an set of dichotomous classifications and then aggregate the results, e.g.: 1) one-vs-all 2) pairwise comparisons (aka [double] round-robin) (Führnkranz)

Re: [R] tcltk loading in R-2.2.1 from src

2006-03-09 Thread Peter Dalgaard
Patrice Seyed [EMAIL PROTECTED] writes: Hi, Having trouble loading tcltk in R 2.2.1 built from source. ./configure, make, make check, and make install run ok. library(tcltk) Error in firstlib(which.lib.loc, package) : Tcl/Tk support is not available on this system Error

Re: [R] install.packages saying the car package is not in therepositories

2006-03-09 Thread Jeremy Morris
Thank you, this did the trick. In which case $ apt-get install r-cran-car is your friend. Is there anyway to upgrade my R install through CRAN? Or is there some Debian repository that has an upgraded version of R? Thanks again. Jeremy

[R] shift / rota

2006-03-09 Thread Omar Lakkis
How to do a shift/rotate os a list? if a = c(1,2,3) what is the best way to make a equal c(3,1,2) __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] install.packages saying the car package is not in therepositories

2006-03-09 Thread Dirk Eddelbuettel
On 9 March 2006 at 20:47, Jeremy Morris wrote: | Thank you, this did the trick. | | In which case | | $ apt-get install r-cran-car | | is your friend. | | Is there anyway to upgrade my R install through CRAN? Or is there | some Debian repository that has an upgraded version of R?

Re: [R] shift / rota

2006-03-09 Thread David Scott
On Thu, 9 Mar 2006, Omar Lakkis wrote: How to do a shift/rotate os a list? if a = c(1,2,3) what is the best way to make a equal c(3,1,2) a - c(a[length(a)],a[-length(a)]) or n - length(a) a - c(a[n],a[-n]) David Scott _

Re: [R] shift / rota

2006-03-09 Thread Francisco J. Zagmutt
a = c(1,2,3) a [1] 1 2 3 rev(a) [1] 3 2 1 PS: a in your example is not a list; i.e class(a) From: Omar Lakkis [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Subject: [R] shift / rota Date: Thu, 9 Mar 2006 15:51:51 -0500 How to do a shift/rotate os a list? if a = c(1,2,3) what is the best way

[R] Optimal platform for R

2006-03-09 Thread gwelleni
I'm looking to buy a new desktop which will primarily be used for analyses of large datasets (100s of MB). I've seen postings from several years back re the 'optimal' platform for running R, but nothing more recently. Specifically, I want to know: 1) if I run R under Windows, does having a

Re: [R] Optimal platform for R

2006-03-09 Thread Duncan Murdoch
On 3/9/2006 4:47 PM, [EMAIL PROTECTED] wrote: I'm looking to buy a new desktop which will primarily be used for analyses of large datasets (100s of MB). I've seen postings from several years back re the 'optimal' platform for running R, but nothing more recently. Specifically, I want

[R] newbie question: grouping rows

2006-03-09 Thread Matthew Scholz
Hi all, I have a very simple question that I can't seem to find the answer to. How do I extract rows that meet a certain criteria from a data frame and group them into a new data frame? For example, if I want to make a new data frame that only includes rows of data for which the p values (given

[R] Trellis - setting xlim or ylim by data range in whole column or row

2006-03-09 Thread Keith Chamberlain
Dear List-mates, I have been trying to set up a 4x8 trellis plot (that is, 4 columns, 8 rows), and would like to have the axis limits set based on the data range of rows (for ylim) and columns (for xlim). I've been using the call: foo-xyplot(y~x|Epoch+Subject, type=c(l,r),

Re: [R] newbie question: grouping rows

2006-03-09 Thread Augusto.Sanabria
Matt, Have a look at subset specially the examples at the end. I use it a lot. Hope it helps, Augusto Augusto Sanabria. MSc, PhD. Mathematical Modeller Risk Research Group Geospatial Earth Monitoring Division Geoscience Australia (www.ga.gov.au)

Re: [R] newbie question: grouping rows

2006-03-09 Thread Christos Hatzis
You can try: new.dataframe - my.dataframe[my.dataframe$p.value 0.05, ] This will select all columns. Alternatively, you can specify the columns that you want after the ,. -Christos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Scholz Sent:

Re: [R] newbie question: grouping rows

2006-03-09 Thread Vayssières , Marc
?subset Marc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Scholz Sent: Thursday, March 09, 2006 2:18 PM To: r-help@stat.math.ethz.ch Subject: [R] newbie question: grouping rows Hi all, I have a very simple question that I can't seem to find

[R] import from LISREL output of parameter estimates

2006-03-09 Thread Felix Flory
I am using R and LISREL for simulation studies. R generates the data that is analyzed with LISREL. In LISREL I use PV in the LISREL output statement to request estimated variances. LISREL writes these in a file that looks like this: 1 0 0 0.100331D+01 0.144845D+01 0.141009D+01

Re: [R] import from LISREL output of parameter estimates

2006-03-09 Thread ronggui
The ouput from LISREL is a matrix,so the read.matrix(tseries) will do the job in this situation. ?read.matrix read.matrix(tseries) R Documentation Read Matrix Data Description Reads a matrix data file. Usage read.matrix(file, header = FALSE, sep = , skip = 0) 2006/3/10,

[R] 2nd R console?

2006-03-09 Thread mark garey
hello all, i'm forwarding this question for a colleague. Is it possible to open a 2nd R Console? regards, mark+ -- mark garey ucsf department of epidemiology and biostatistics division of biostatistics 185 berry street, suite 5700 san francisco, ca. 94107-1739 415.514.8147

Re: [R] 2nd R console?

2006-03-09 Thread Thomas Lumley
On Thu, 9 Mar 2006, mark garey wrote: hello all, i'm forwarding this question for a colleague. Is it possible to open a 2nd R Console? The answer is probably No, but since it isn't clear what your colleague means by a 2nd R Console or what OS this is, it's hard to be sure. -thomas

[R] coloring leaves in a hclust or dendrogram plot

2006-03-09 Thread Dylan Beaudette
Greetings, I have perused the r-help mailing list archives for an answer to this question, without avail. I would like to color the leaves of a dendrogram plot based on a cutoff in one of the variables involved in the initial clustering. My input data is in the form of: B

Re: [R] maximum likelihood estimate

2006-03-09 Thread Spencer Graves
I suggest you go to www.r-project.org - CRAN - (select a local mirror) - Packages. Among the offerings there, you will find the following: distr Object orientated implementation of distributions distrEx Extensions of package distr distrSimSimulation classes based on package

[R] Date and Times a la Dalgaard

2006-03-09 Thread Farrel Buchinsky
Does anyone know of a resource for learning the basics of how to manage and manipulate dates and times in R? I have been reading Introductory Statistics with R by Peter Dalgaard which is fantastic. But alas, I could find no reference to date and time. I have looked at the reference manual but it

Re: [R] interrupted time series analysis using ARIMA models

2006-03-09 Thread Spencer Graves
I'm familiar with Box and Tiao (1975) intervention analysis; I studied time series under Box and Tiao. I don't know how to do that in R, but there must be a way. Have you looked at the 'dse' bundle? That comes with vignettes that make it relatively easy to learn (or at least to

Re: [R] Date and Times a la Dalgaard

2006-03-09 Thread Augusto.Sanabria
To manipulate date/time I use packages zoo and survival. Hope it helps, Augusto Augusto Sanabria. MSc, PhD. Mathematical Modeller Risk Research Group Geospatial Earth Monitoring Division Geoscience Australia (www.ga.gov.au) Cnr. Jerrabomberra Av.

Re: [R] Date and Times a la Dalgaard

2006-03-09 Thread Marc Schwartz
On Thu, 2006-03-09 at 22:38 -0500, Farrel Buchinsky wrote: Does anyone know of a resource for learning the basics of how to manage and manipulate dates and times in R? I have been reading Introductory Statistics with R by Peter Dalgaard which is fantastic. But alas, I could find no reference

Re: [R] 2nd R console?

2006-03-09 Thread Michael Prager
On Windows, I often have more than one R console (instance of Rgui.exe) open at the same time. Unless by mistake, each instance is open on a unique working directory. MHP mark garey wrote on 3/9/2006 8:05 PM: hello all, i'm forwarding this question for a colleague. Is it possible to open a

Re: [R] Optimal platform for R

2006-03-09 Thread Michael Prager
[EMAIL PROTECTED] wrote on 3/9/2006 4:47 PM: I'm looking to buy a new desktop which will primarily be used for analyses of large datasets (100s of MB). I've seen postings from several years back re the 'optimal' platform for running R, but nothing more recently. Specifically, I want to

Re: [R] Trellis - setting xlim or ylim by data range in whole column or row

2006-03-09 Thread Deepayan Sarkar
On 3/9/06, Keith Chamberlain [EMAIL PROTECTED] wrote: Dear List-mates, I have been trying to set up a 4x8 trellis plot (that is, 4 columns, 8 rows), and would like to have the axis limits set based on the data range of rows (for ylim) and columns (for xlim). I've been using the call:

Re: [R] lsa and Rstem?

2006-03-09 Thread Michael Kubovy
Hi Dave, On Mar 9, 2006, at 9:25 AM, Dave Atkins wrote: install.packages(Rstem, repos = http://www.omegahat.org/R;) This works. install.packages(lsa) Also works. But: library(lsa) Loading required package: Rstem Error in dyn.load(x, as.logical(local), as.logical(now)) : unable

Re: [R] Trellis - setting xlim or ylim by data range in whole column or row

2006-03-09 Thread Keith Chamberlain
Dear Deepayan, My deepest thanks! Your example code worked perfectly. I understood the caveats you detailed about figuring out the axis limits before resolving the layout, which depend on a bunch of other stuff. I'm glad this is possible. Yes, this particular layout does only make sense in this

Re: [R] lsa and Rstem?

2006-03-09 Thread Prof Brian Ripley
On Thu, 9 Mar 2006, Michael Kubovy wrote: Does anyone have further advice? Build Rstem from the sources on your own machine. install.packages(Rstem, repos = http://www.omegahat.org/R;, type = source) should work if you have your compilers etc set up to build packages from

Re: [R] 2nd R console?

2006-03-09 Thread Prof Brian Ripley
On Thu, 9 Mar 2006, Thomas Lumley wrote: On Thu, 9 Mar 2006, mark garey wrote: hello all, i'm forwarding this question for a colleague. Is it possible to open a 2nd R Console? The answer is probably No, but since it isn't clear what your colleague means by a 2nd R Console or what OS this

[R] what's wrong with my cov?

2006-03-09 Thread Michael
Hi all, Why cov(y, y) only gives one value, and cov(t(y), t(y)) gives 3x3 NA matrix? Here my y is listed below and it is a 3x1 matrix. I am expecting that if I have a random vector y=[y1 y2 y3]', here ' denotes a transposition so that y is a column vector, where y1, y2, y3 are independent

Re: [R] Optimal platform for R

2006-03-09 Thread Prof Brian Ripley
On Thu, 9 Mar 2006, [EMAIL PROTECTED] wrote: I'm looking to buy a new desktop which will primarily be used for analyses of large datasets (100s of MB). I've seen postings from several years back re the 'optimal' platform for running R, but nothing more recently. It is a subject which comes

Re: [R] count pixels of same color in pixmap object?

2006-03-09 Thread Philippe Grosjean
Another solution is to use external tools. It really depends on what you have to do: if it is to count pixels of one, or a few gray levels, it could be fine to do it in R,... but if you want to count *all* pixels, this could be more efficient using a C program, especially if you work with