Re: [R] Metropolis-Hastings Markov Chain Monte Carlo in Spatstat

2007-06-06 Thread roger koenker
Take a look at: http://sepwww.stanford.edu/software/ratfor.html and in particular the link there to the original paper by Brian Kernighan describing ratfor; it is only 14 pages, but it is a model of clarity of exposition and design. I wouldn't worry too much about the makefile -- it probably

Re: [R] Question: RMySQL bulk load/update one column, dbWriteTable()?

2007-06-06 Thread Waverley
Thanks Chris. I am trying almost the same solution while I have failed the dbWriteTable. The problem of using update is that it is way TOO slow when the row size is ~20. That is why I hope I can still get dbWriteTable way to add one column. dbWriteTable is very efficient and fast. The

[R] opening a file from within a zipfile that is online

2007-06-06 Thread toby909
Hi Reading the help for ?unz I was wondering if I can read data into R from within an zipfile that is on some website, like maybe: dtaa = read.table(unz(http://www.ats.ucla.edu/stat/examples/alsm/alsm.zip,Ch01pr19.dat;)) Thanks for letting me know if you came acros such a thing before. Toby

[R] names not inherited in functions

2007-06-06 Thread david dav
Dear all, I 'd like to keep the names of variables when calling them in a function. An example might help to understand my problem : The following function puts in a new data frame counts and percent of a data.frame called as tablo the step nom.chiffr[1] - names(vari) is useless as names from

[R] error message: only first element in each line of matrix used

2007-06-06 Thread Melanie Ann Harsch
I have a matrix and am trying to write a code to 1. identify all neg values along each line 2. for each neg value I need to identify min(j+3) 3. end with this code: eq[i,j]- ifelse(mat.r[i,j] (0.5*mat.s[i,j]), mat.all[i,j], 0) This is the code I have so far. I have tried several different

Re: [R] Spectral analysis

2007-06-06 Thread Gavin Simpson
On Wed, 2007-06-06 at 13:55 -0700, David LEDU wrote: Hi all, I am dealing with paleoceanographic data and I have a C14 time serie and one other variable. I would like to perform a spectral analysis (fft or wavelet) and plot it. Unfortunately I don't know the exact script to do this. Does

Re: [R] Mandriva Spring 2007 and R

2007-06-06 Thread Michael Bibo
Roland Rau roland.rproject at gmail.com writes: Hi Jonathan, Jonathan Morse wrote: I am new to Linux (not to R) and recently installed Mandriva Spring 2007 on my partitioned hard drive. My next objective is to install R in the Linux environment, unfortunately Mandriva is not one of

Re: [R] error message: only first element in each line of matrix used

2007-06-06 Thread jim holtman
your problem is in the statement: if(mat.all[i,(j-int):(j-1)]0){ you have multiple values in the comparison and the 'if' statement can only use a single value. Do you want the statement to read: if(all(mat.all[i,(j-int):(j-1)]0)){ which will test for 'all' the comparisons to be true? On

[R] How to load a big txt file

2007-06-06 Thread ssls sddd
Dear list, I need to read a big txt file (around 130Mb; 23800 rows and 49 columns) for downstream clustering analysis. I first used Tumor - read.table(Tumor.txt,header = TRUE,sep = \t) but it took a long time and failed. However, it had no problem if I just put data of 3 columns. Is there any

Re: [R] name of the variable that will contain the result of a function

2007-06-06 Thread Gabor Grothendieck
Don't think you can do that but you could respecify your function so that the assigned variable must appear as the first argument: foo - function(y, arg) { y - substitute(y) if (is.name(y)) assign(deparse(y), arg+1, parent.frame()) else cat(not assigned\n)

[R] Problem Building on Solaris 8

2007-06-06 Thread Alex Restrepo
Hello: I am building R-2.5.0 on Solaris 8 with gcc version 3.3 and I am getting the following error. Could someone please help me with this? Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/mmrg/temp/R-2.5.0/library/stats/libs/stats.so':

Re: [R] Re : I need some help please!

2007-06-06 Thread Jeff Newmiller
Bernard Colin wrote: To whom it may concern, I want to plot two or more graphics in the same window by the means of the plot command. To do that, I have tried the add=TRUE option, but this last one does not work! Do you have an hint for me please? Assuming you want to overlay multiple data

Re: [R] factor analysis

2007-06-06 Thread Spencer Graves
I haven't seen an answer to this post, so I thought I would try to generate a response. Regarding your first question (Can i use this factor analysis somehow despite the poor cumulative variance of the first three factors ?), I would ask, for what purpose? And, What are the

Re: [R] How to load a big txt file

2007-06-06 Thread Chung-hong Chan
Easy solution will be split your big txt files by text editor. e.g. 5000 rows each. and then combine the dataframes together into one. On 6/7/07, ssls sddd [EMAIL PROTECTED] wrote: Dear list, I need to read a big txt file (around 130Mb; 23800 rows and 49 columns) for downstream clustering

Re: [R] R-squared in mixed-effects models

2007-06-06 Thread Spencer Graves
RSiteSearch(R^2 in lme) produced 34 hits for me just now, including 5 from an exchange on this list dated 2007.05.14. They should answer your question better than I can. Hope this helps. Spencer Graves Richard Gunton wrote: Hello, I'm fitting general linear models

[R] Dr Bill Venables course in Raleigh and Washington DC - Traditional and Modern Approaches to Statistical Modelling with R by

2007-06-06 Thread Sue Turner
Greetings! We've added Raleigh***July 09-10 as a second US destination for Dr Venables' Traditional and Modern Approaches to Statistical Modelling with R course. We still have seats for the following July courses: (1) Traditional and Modern Approaches to Statistical Modelling with R by Dr

[R] Question about parse and expression

2007-06-06 Thread Nitin Jain
Dear R-users, In the following example, I would like to see my ylabel as: beta[3] * x[3] + epsilon (where beta and epsilon are replaced by their mathematical symbols). Please advise. Thanks. Nitin i - 3 ee - expression(beta[i] * x[i] + epsilon) xyplot(1:10~ 11:20, ylab =

Re: [R] How to load a big txt file

2007-06-06 Thread Charles C. Berry
Alex, See R Data Import/Export Version 2.5.0 (2007-04-23) search for 'large' or 'scan'. Usually, taking care with the arguments nlines, what, quote, comment.char should be enough to get scan() to cooperate. You will need around 1GB RAM to store the result, so if you are

Re: [R] How to load a big txt file

2007-06-06 Thread Charles C. Berry
On Wed, 6 Jun 2007, Charles C. Berry wrote: Alex, See R Data Import/Export Version 2.5.0 (2007-04-23) search for 'large' or 'scan'. Usually, taking care with the arguments nlines, what, quote, comment.char should be enough to get scan() to cooperate. You will need

Re: [R] Question about parse and expression

2007-06-06 Thread Charles C. Berry
On Wed, 6 Jun 2007, Nitin Jain wrote: Dear R-users, In the following example, I would like to see my ylabel as: beta[3] * x[3] + epsilon (where beta and epsilon are replaced by their mathematical symbols). Please advise. ?plotmath ?bquote example(plotmath)

Re: [R] Question about parse and expression

2007-06-06 Thread Gabor Grothendieck
Try this: library(lattice) x - 1:10 i - 3 xlab - as.expression(substitute(beta[i] * x[i] + epsilon, list(i = i))) xyplot(x ~ x, xlab = xlab) On 6/6/07, Nitin Jain [EMAIL PROTECTED] wrote: Dear R-users, In the following example, I would like to see my ylabel as: beta[3] * x[3] + epsilon

Re: [R] Can I treat subject as fixed effect in linear model

2007-06-06 Thread Spencer Graves
The short answer is that you could fit that fixed-effect model using 'lm', for example. That would make sense if you wanted to make inference only about that particular group of 20 subjects AND you thought it was inappropriate to consider that their contribution to a model would follow

Re: [R] compiling from source on Vista

2007-06-06 Thread Prof Brian Ripley
On Wed, 6 Jun 2007, Erin Hodgess wrote: Dear R People: In the R Installation and Administration manual, there is a note that the process used to compile R from source will NOT work on Windows Vista. Does anyone know if that situation has changed, please? That's not quite what it says:

<    1   2