Re: [R] replacing NA's with various numbers

2007-10-05 Thread Gabor Grothendieck
On 10/5/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote: > x[is.na(x)]<- y[is.na(x)] but this will only work correctly if x and y > are the same length so I hope that is > what you mean by the same style. That can be fixed if y is at least as long as to reach the last NA in x like this: x[is.na(

Re: [R] replacing NA's with various numbers

2007-10-05 Thread Leeds, Mark (IED)
x[is.na(x)]<- y[is.na(x)] but this will only work correctly if x and y are the same length so I hope that is what you mean by the same style. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, October 05, 2007 10:28 PM To: [

[R] replacing NA's with various numbers

2007-10-05 Thread Nigel . Walker
Hi I have two vectors in the same style as x<-c(NA,NA,1,3,4,NA,1) y<-c(0,0,NA,NA,NA,0,NA) that is when x[ i ] = NA, y[ i ]=numeric. I wish to replace the NA's in x by the corresponding y value. Any help would be much appreciated. Nigel __ R-help@r-pr

Re: [R] Mac GUI and .Renviron

2007-10-05 Thread Steven McKinney
Hi Jake This might work for you: You can make hidden files visible in the Mac Finder by issuing the following command in a *nix shell window: in the Terminal type: defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder (see e.g. http://www.osxfaq.com/DailyTips/02-2005/02-01.w

Re: [R] Replacing NA values when building matrix using tapply

2007-10-05 Thread Gabor Grothendieck
Try this: xtabs(value ~ row + column, d)[] On 10/5/07, Chris Long <[EMAIL PROTECTED]> wrote: > Hi, > > I'm building a matrix m from a data frame d which includes the matrix row, > column and value. > > This works well enough: > > m <- tapply(d[,"value"],d[,c("row","column")],c) > > However, I'

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Richard M. Heiberger
What are your criteria for friendliness? What features are you missing in emacs that you wish were there? Are these ESS features or LaTeX related features? Rich -Original Message- want something like Emacs (of course including auctex and ess), but not Emacs. Something like Tinn-R [htt

[R] (no subject)

2007-10-05 Thread Zhang, Yongqing (NIH/NIA/IRP) [C]
Hi, All, I try to accessing the x11() device over cgi - namely, when trying to create a graphic using the jpeg() function, everything is fine from the command line but it won't work over cgi, producing the error: "Unable to open connection to X11 display" Do you you know how to solve this proble

[R] Replacing NA values when building matrix using tapply

2007-10-05 Thread Chris Long
Hi, I'm building a matrix m from a data frame d which includes the matrix row, column and value. This works well enough: m <- tapply(d[,"value"],d[,c("row","column")],c) However, I'd like to replace any missing values with 0, not NA. The obvious doesn't work, however: m <- tapply(d[,"value"],

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread jiho
On 2007-October-05 , at 18:56 , Christian Salas wrote: > Using Tinn-R (in windows) is possible to run latex and R from the same > editor, which was great. Now, I am using Ubuntu-linux, which has been > better than WinXP. Currently, I am using Emacs (and then install ESS) > for running LaTeX and R

[R] Post-hoc tests for Cox proportional hazards

2007-10-05 Thread Justin Montemarano
Hello all: I'm having some difficulty interpreting the results of a Cox proportional hazards analysis that I recently performed. I am running the fit with a fixed categorical variable (Treatment) and a nested categorical variable (Chamber) within Treatment. The likelihood ratio tests of both of th

[R] Mac GUI and .Renviron

2007-10-05 Thread jwegelin
The .Renviron and .First functions do not seem to work the same way on a Mac OS 10.4 as on a Windows XP machine. From working in Windows I am used to creating a new directory for each data analysis project. In the new directory I place First, an .Renviron file consisting of the following text:

[R] Opening Scripts with long paths causes R 2.6.0 to crash

2007-10-05 Thread Jeff Lusk
I am running R 2.6.0 on a PC running MS Windows 2000 Professional. After upgrading to this new version of R, I have been having problems opening scripts: opening certain scripts result in R crashing. After some experimentation, I discovered that it is a problem with the number of subdirectori

Re: [R] creating objects of class "xtabs" "table" in R

2007-10-05 Thread born . to . b . wyld
Neat! Thanks. On 10/5/07, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > > On 10/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have an application that would generate a cross-tabulation in array > > format in R. In particular, my application would give me a result > > similar to that of

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Marc Schwartz
On Fri, 2007-10-05 at 22:09 +0200, Liviu Andronic wrote: > On 10/5/07, Christian Salas <[EMAIL PROTECTED]> wrote: > > I was wondering if you know of a linux editor that is able to run R and > > compile LaTeX files from it. > > Well, there is Winefish for LaTeX and Bluefish for R. The former is > b

[R] Variable characterization by the modalities of other variables

2007-10-05 Thread Jorge Manuel de Almeida Magalhães
Dear Sirs, Is there a way to make in R a variable modalities characterisation by the modalities of other categorical variables? Usually I do this task in SPAD. The output are: column 3 -- modality % in the class column 4 -- modality % in the population column 5 -- class % in the modality s

Re: [R] creating objects of class "xtabs" "table" in R

2007-10-05 Thread Marc Schwartz
On Fri, 2007-10-05 at 13:09 -0700, Deepayan Sarkar wrote: > On 10/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have an application that would generate a cross-tabulation in array > > format in R. In particular, my application would give me a result > > similar to that of : > > > > array

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Liviu Andronic
On 10/5/07, Christian Salas <[EMAIL PROTECTED]> wrote: > I was wondering if you know of a linux editor that is able to run R and > compile LaTeX files from it. Well, there is Winefish for LaTeX and Bluefish for R. The former is based on the latter. Not exactly one editor, but you may be interested

Re: [R] creating objects of class "xtabs" "table" in R

2007-10-05 Thread Deepayan Sarkar
On 10/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have an application that would generate a cross-tabulation in array > format in R. In particular, my application would give me a result > similar to that of : > > array(5,c(2,2,2,2,2)) > > The above could be seen as a cross-tabulation of

[R] installing Rmpi

2007-10-05 Thread Erin Hodgess
Hi R people: I installed R-2.6.0 on a Red Hat Linux system and am now trying to install the Rmpi package. The installation cannot seem to find the mpi.h file, even though it exists. Is there a variable that I should be exporting into the process, please? Thanks in advance, Sincerely, Erin Hodge

[R] creating objects of class "xtabs" "table" in R

2007-10-05 Thread born . to . b . wyld
I have an application that would generate a cross-tabulation in array format in R. In particular, my application would give me a result similar to that of : array(5,c(2,2,2,2,2)) The above could be seen as a cross-tabulation of 5 variables with 2 levels each (could be 0 and 1). In this case, the

Re: [R] linewidth in Rgraphviz

2007-10-05 Thread Robert Gentleman
Hi Ben, Sorry for the slow reply, but something like this works, library(Rgraphviz) example(randomEGraph) x = plot(g1) xx = sapply(AgEdge(x), lines, lwd=2, len=1) there are other ways too - but this might be the easiest let me know if that does what

[R] finding libraries with command line Rterm.exe (from tcl/tk )

2007-10-05 Thread Wolfgang Raffelsberger
Dear all, Let me reformulate my question from my previous post (thanks to Brian Ripley for the hint but this didn't help me to resolve the problem). I'll try to be more precise : I have installed R-2.6.0 in a Windows Vista machine using default settings (so R is under C:\Program Files ). Then, r

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Roland Rau
Christian Salas wrote: > I want something like Emacs (of course including auctex and ess), but > not Emacs. Something like Tinn-R [http://www.sciviews.org/Tinn-R/] is > the best solution, as far as I know for it, unfortunately is only > available for Windows. XEmacs? :-) If you don't want Emac

[R] compiling a module

2007-10-05 Thread Yectli Huerta
hello, i just compiled R, version R-2.6.0. I also compiled Rserve as instructed. it does install, but i can not run it. yhuerta:~> R CMD Rserve --help /opt/R/R-2.6.0/lib64/R/bin/Rcmd: line 45: exec: Rserve: not found yhuerta:~> any ideas? i did set up Rpath, and the module compiled successfully

Re: [R] help in substitute function

2007-10-05 Thread Alberto Monteiro
Ronaldo Reis Junior asked: > > I try to use a substitute function to generalise a equation. > > I have this: > > expression(1+2*pred+3*lat) > > (...) My expected result is: > > expression(1 + 2 * x1 + 3 * x2) > Check message by Thomas Lumley on 2007-03-27 (command... RSiteSearch("Replacement

[R] [R-pkgs] new packages: caret, caretLSF and caretNWS

2007-10-05 Thread Kuhn, Max
Three more packages will be showing up on your mirror soon. The caret package (short for "Classification And REgression Training") aims to simplify the model building process. The package has functions for - data splitting: balanced train/test splits, cross-validation and bootstrapping sampling

[R] Extracting df (degree of freedom) & estfun (estimating function) from model built in lmer or lmer2

2007-10-05 Thread Abdus Sattar
Hello R-users: Could you please tell me how can I extract the "df (degree of freedom)" and "estfun (estimating functions)" for the following lmer (or lmer2) model? wtd.mixed<-lmer(ddimer~race+steroid+psi+sofa+apache + (1|subject), method="ML", data=final, cluster="id", weights=w) I tried th

Re: [R] lme (or lmer) question

2007-10-05 Thread Douglas Bates
On 10/5/07, Bert Gunter <[EMAIL PROTECTED]> wrote: > Folks: > In the following mixed effect model, the "x" and residual variance > components are nonidentifiable. Yet lme() (or the equivalent in lmer()) > happily produces an answer in which the sum of the variance components is > the correct estim

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Christian Salas
hi ScionForbai yes i know auctex, but i do not know Kate, as I mentioned, I compile LatEx documents from Emacs and also run R from it (thanks to ESS). Regarding this that you said > in the built-in terminal on the lower part of the screen. I use the > mouse to copy/paste lines from a script to

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Christian Salas
hey dylan, but i am looking for only one editor that is able to run R and also be able to compile Latex files (like Emacs but i don't like too much emacs) --- Christian SalasE-mail:[EMAIL PROTECTED

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Scionforbai
> I was wondering if you know of a linux editor that is able to run R and > compile LaTeX files from it. I assume you already know auctex for emacs. Well, currently I use emacs+auctex for latex and kate for R. ess doesn't satisfy me, and I find R processes much slower when launched within emacs. k

[R] Drop / Reshape

2007-10-05 Thread Daniel Malter
Hi all, I have to reshape a dataset with many variables. Not all variables should be included in the new dataset. Is it possible to NOT specify the drop-vector of the reshape function explicitly? Instead I would like to drop all variables that have not been used in one of the other arguments. If

Re: [R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Dylan Beaudette
On Friday 05 October 2007, Christian Salas wrote: > Using Tinn-R (in windows) is possible to run latex and R from the same > editor, which was great. Now, I am using Ubuntu-linux, which has been > better than WinXP. Currently, I am using Emacs (and then install ESS) > for running LaTeX and R from a

[R] Linux editor for R+LaTeX, but not Emacs

2007-10-05 Thread Christian Salas
Using Tinn-R (in windows) is possible to run latex and R from the same editor, which was great. Now, I am using Ubuntu-linux, which has been better than WinXP. Currently, I am using Emacs (and then install ESS) for running LaTeX and R from a same editor-program (like i was doing with Tinn-R in

[R] Object oriented programming: R x S+

2007-10-05 Thread lmiceli
I am interest in object oriented programming R I thought the R documentation about this subject is quit poor in relation to the S+ So, is there any major difference between R and S+ in this approach? in particularly, about formal definitional of a class The S+ manual could be a useful

Re: [R] Problem loading a txt file as a data.frame

2007-10-05 Thread Prof Brian Ripley
The first-round answer to such questions is to try read.delim(). Why? Because the issues are often comment characters (#) or quotes('). It is also possible that you have unmatched ", but that usually indicates something more serious. On Fri, 5 Oct 2007, Ettinger, Nicholas wrote: > Hello all, >

Re: [R] Sklyar's inline package: how to return a list?

2007-10-05 Thread Dirk Eddelbuettel
On 5 October 2007 at 10:48, Feng, Ken wrote: | Below I have a mickey-mouse example using Oleg Sklyar's wonderful inline package. | | The question I have is, how do I return multiple values, say in a list? | Inside the C code, I've also calculated 'sum'. How do I return this along with 'res'

[R] Tart charts

2007-10-05 Thread roger koenker
It being friday, I would like to call your attention to an innovative data analysis by Leslie Lamport available from: http://research.microsoft.com/users/lamport/pubs/hair.pdf I particularly liked the graphics. url:www.econ.uiuc.edu/~rogerRoger Koenker email[EMAIL PR

[R] lme (or lmer) question

2007-10-05 Thread Bert Gunter
Folks: In the following mixed effect model, the "x" and residual variance components are nonidentifiable. Yet lme() (or the equivalent in lmer()) happily produces an answer in which the sum of the variance components is the correct estimate of the single variance parameter. Why? -- i.e. why doesn'

Re: [R] Problem loading a txt file as a data.frame

2007-10-05 Thread Richard Gott
Not sure if same problem, but I had a very simple file which wouldn;t load. I had created it, in a roundabout way, via Gnumeric. After some fiddlign around I decided that there was a non-printing character or rogue \n or \r character somewhere in the file but I couldn;t find it. loading bits fo t

Re: [R] question about predict.gam

2007-10-05 Thread Simon Wood
On Friday 05 October 2007 16:25, Michela Leone wrote: > I'm fitting a Poisson gam model, say > > model<-gam(a65tm~as.factor(day.week > )+as.factor(week)+offset(log(pop65))+s(time,k=10,bs="cr",fx=FALSE,by=NA,m=1 >),sp=c( 0.001),data=dati1,family=poisson) > > > > Currently I've difficulties in obtain

[R] Optim routine loses function name

2007-10-05 Thread Douglas Ewbank
Colleagues - I am trying to write a rather complex maximum likelihood program. One of the complexities is that I want to create a program that can accept user-written routines to calculate likelihood values from different types of data. The program uses several functions I have written.

Re: [R] Contour plot (level curves)

2007-10-05 Thread Eric Elguero
> I have a sample of n values from a bivariate distribution (from a MCMC > procedure). How could I draw a contour plot of "the joint density" based on > that sample ? here is a fast 2D density estimator. Not very sophisticated, but works. The function assumes that data are in the form of a matrix

[R] Fwd: question about predict.gam

2007-10-05 Thread Michela Leone
-- Forwarded message -- From: Michela Leone <[EMAIL PROTECTED]> Date: 5-ott-2007 17.25 Subject: question about predict.gam To: R-help@r-project.org I'm fitting a Poisson gam model, say model<-gam(a65tm~as.factor(day.week )+as.factor(week)+offset(log(pop65))+s(time,k=10,bs="cr",fx=

[R] question about predict.gam

2007-10-05 Thread Michela Leone
I'm fitting a Poisson gam model, say model<-gam(a65tm~as.factor(day.week )+as.factor(week)+offset(log(pop65))+s(time,k=10,bs="cr",fx=FALSE,by=NA,m=1),sp=c( 0.001),data=dati1,family=poisson) Currently I've difficulties in obtaining right predictions by using gam.predict function with MGCV packag

[R] use of specaccum in routine procedure

2007-10-05 Thread Giovanni Bacaro
Dear list members, I have a data.frame so shaped: Sector Quadrants PlotSic TimeSpecies1Species2 Species3……….. Species-n 1 1 1 1 5 0 0 1 . 0 2 1 1 1 12 1 1 1

Re: [R] Splines

2007-10-05 Thread Wayne.W.Jones
smooth.spline is a handy function and does what you need: Careful to not over fit though. Use different values of spar and df. y<-c(467, 468, 460 ,460 ,450, 432, 419, 420, 423, 423) x<-1:10 plot(x,y) predict(smooth.spline(x,y,df=4),x=3.5) lines(predict(smooth.spline(x,y,df=4),x=seq(1,10,length=1

[R] Unsere persoenliche Empfehlung des Hauses fuer [EMAIL PROTECTED] - Exklusiv für Sie

2007-10-05 Thread [EMAIL PROTECTED]
Holen sie sich jetzt 2400 EUR in Cash ab Und gehen Sie dabei einen sicheren und koeniglichen Weg !!! Alles mehrsprachig und einfach erklaert, starten Sie jetzt !!! Für jeden erhaeltlich, ganz einfach: Anklicken, Registrieren, abholen !!! WO ERHALTEN SIE SONST 2400 Euro in 12 Monaten aufgeteil

Re: [R] Shading area under density curves

2007-10-05 Thread AA
I found the link below very helpful in explaining the use of polygon. http://www.feferraz.net/en/shaded.html good luck AA. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, October 03, 2007 5:21 PM Subject: [R] Shading area under density curves > Hello, > > I have a

Re: [R] Convergence problem in gam(mgcv)

2007-10-05 Thread Ariyo Kanno
I'm grateful for your kind help. I've clearly got the idea and am relieved. As for question 1, the value of mgcv.conv$rms is small (less than 1.E-5 while GCV being around 1). For question 2, as I don't have other reasons to doubt the linearity, I guess the result is OK. Sincerely, Ariyo 2007/1

Re: [R] help in substitute function

2007-10-05 Thread Gabor Grothendieck
On 10/5/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Given this: > > x1 <- "pred" > x2 <- "lat" > e <- expression(1+2*pred+3*lat) > > Try this: > > L <- list(as.name("x1"), as.name("x2")) > names(L) <- c(x1, x2) > do.call(substitute, list(e, L)) # e & L are evaluated first > > or perhaps: >

[R] RMySQL db connect

2007-10-05 Thread cinzia sala
I would like a small help on establishing a connection on a remote MySQL database using R I am able to connect to a localhost database in mysql and perform queries, but when I try to connect to a database on a remote host (to which I usually have access through ssh) I fail to establish a c

[R] Problem loading a txt file as a data.frame

2007-10-05 Thread Ettinger, Nicholas
Hello all, I know that this is a terribly banal question but I cannot seem to solve it. I am trying to load in data from a tab-delimited text file. Some columns are mixed text-numbers and other columns are strictly numbers. Some cells are blank. My command is: >MDMT_RPup <- read.table

Re: [R] help in substitute function

2007-10-05 Thread Gabor Grothendieck
Given this: x1 <- "pred" x2 <- "lat" e <- expression(1+2*pred+3*lat) Try this: L <- list(as.name("x1"), as.name("x2")) names(L) <- c(x1, x2) do.call(substitute, list(e, L)) # e & L are evaluated first or perhaps: f <- e f <- sub("pred", "x1", f) # also converts to character f <- sub("lat", "x2

Re: [R] help in substitute function

2007-10-05 Thread Henrique Dallazuanna
Hi, try this(Not tested): substitute(expression(1+2*pred+3*lat),list(pred=as.name(x1),lat=as.name(x2))) On 05/10/2007, Ronaldo Reis Junior <[EMAIL PROTECTED]> wrote: > > Hi, > > I try to use a substitute function to generalise a equation. > > I have this: > > expression(1+2*pred+3*lat) > > I

[R] help in substitute function

2007-10-05 Thread Ronaldo Reis Junior
Hi, I try to use a substitute function to generalise a equation. I have this: expression(1+2*pred+3*lat) I need to define the equation in function of x1 and x2 variables. Also I try to define who is x1 and x2. I try this: X1 <- "pred" X2 <- "lat" Now I need substitute pred and lat in equatio

[R] Rpad textarea handling

2007-10-05 Thread Tim Bergsma
Hi. I'm trying to write an Rpad that edits scripts. Textarea seems like an obvious tool, but unlike other input elements, it seems that the contents are not sent to R on 'calculate'. To illustrate using the page below: load, F9, edit text, F9. The original contents of 'script' are restored.

Re: [R] Linear Regression

2007-10-05 Thread livia
Thank you very much for your reply and I did not make myself clear. My model is like lm(y ~ x1+x2+x3,data), I would like to see E(y) and the standard error. Ben Bolker wrote: > > > > livia wrote: >> >> Hello, >> >> I am performing a multiple linear regression, is there a way of get the >>

[R] skill scores

2007-10-05 Thread Gianni Messeri
Hi, I'm a new R-user. I want to use some skill scores for weather forecast purpose. Are there packages or functions in R with some skill scores (POD, FAR, TSS, CSI, HEIDKE, ecc)? Thanks in advance Gianni -- Gianni Messeri La.M.M.A (Laboratorio Meteorologia e Modellistica Ambientale) CNR-IBIMET (

Re: [R] Linear Regression

2007-10-05 Thread Ben Bolker
livia wrote: > > Hello, > > I am performing a multiple linear regression, is there a way of get the > mean and standard error of the response variable? > > Could anyone give me some advice? Many thanks. > You may need to give us more information/express your request more clearly. Two answe

Re: [R] combining vectors on unequal length

2007-10-05 Thread Nair, Murlidharan T
Thanks to all for their suggestions!! Cheers../Murli -Original Message- From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 3:30 PM To: Nair, Murlidharan T Cc: [EMAIL PROTECTED] Subject: Re: [R] combining vectors on unequal length Assuming they are numeric

Re: [R] know java version

2007-10-05 Thread mel
Bio7 a écrit : > If you use the java version fom the classpath you can type inside R: > system("java -version") > or type "java -version" in the shell or console. This works for my config : R.2.5.1. under windowsXP. (apologies for forgetting precising it). Many thanks for your answer. Vincent _

[R] Odp: trimmed mean

2007-10-05 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 05.10.2007 13:24:06: > > Dear list, > > I would like to calculate the trimmed mean for some subsets within a > data.frame (data). The list has already been very helpful, and I have > managed calculating the standard mean for the "Intensity" column based > on t

[R] Linear Regression

2007-10-05 Thread livia
Hello, I am performing a multiple linear regression, is there a way of get the mean and standard error of the response variable? Could anyone give me some advice? Many thanks. -- View this message in context: http://www.nabble.com/Linear-Regression-tf4574635.html#a13057768 Sent from the R help

Re: [R] [STATSGRASS] using spplot (sp package) with 5 quantiles

2007-10-05 Thread Edzer J. Pebesma
Please try library(sp) data(meuse) coordinates(meuse) = ~x+y spplot(meuse, "zinc", cuts = quantile(meuse$zinc)) Best wishes, -- Edzer Mauricio Zambrano wrote: > Hi, > > I'm using R 2.5.1 and gstat 0.9-39 library and I'm working with the > jura data set provided by gstat library. > > I tried to p

[R] trimmed mean

2007-10-05 Thread darteta001
Dear list, I would like to calculate the trimmed mean for some subsets within a data.frame (data). The list has already been very helpful, and I have managed calculating the standard mean for the "Intensity" column based on the "Name" column using > avgs <-aggregate(data$Intensity, by = list(

Re: [R] know java version

2007-10-05 Thread Bio7
If you use the java version fom the classpath you can type inside R: system("java -version") or type "java -version" in the shell or console. -- View this message in context: http://www.nabble.com/know-java-version-tf4573584.html#a13057080 Sent from the R help mailing list archive at Nabble.c

Re: [R] Apply vector of labels to columns of data frame

2007-10-05 Thread Steve Powell
Thanks Shubha, Petr and Patrick - Erm, yes perhaps I wasn't clear, when I said "label" I didn't mean names, I meant the labels provided by Hmisc. So for example v=c("lab1","lab2","lab3") a<-b<-c<-1:3 df=data.frame(cbind(a,b,c)) I can do label(df$a)="lab1" label(df$b)="lab2" etc Or attributes(d

Re: [R] R 2.6.0 Windows/lme4 Rblas load problem

2007-10-05 Thread Uwe Ligges
As Brian Ripley pointed out in a private message, it is a problem with the CRAN binary of Matrix that results in problems on Windows 2000 and earlier. The binary had the imports not optimal for some reasons - I guess because I used a self compiled ATLAS optimized Rblas while building the CRAN v

Re: [R] Remove zero row from data.frame

2007-10-05 Thread Uwe Ligges
Rees, David wrote: > Hi, > > Sorry that this is such a basic question, but I am having trouble with > the following. > > I would like to remove all rows where the data is all zeros in a > data.frame such as the following > >> x > dateabc > 1 2007.09.25 99.8984

[R] Remove zero row from data.frame

2007-10-05 Thread Rees, David
Hi, Sorry that this is such a basic question, but I am having trouble with the following. I would like to remove all rows where the data is all zeros in a data.frame such as the following > x dateabc 1 2007.09.25 99.89844 100.0586 100.0840 4 2007.09.26 99.89844

[R] Odp: Apply vector of labels to columns of data frame

2007-10-05 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 05.10.2007 11:19:16: > Dear list members > I would like to apply a vector of labels > v=c("lab1","lab2","lab3") > to a dataframe > df=data.frame(1:3,1:3,1:3) > using some kind of loop or apply function. > Any ideas? Few 1. Read R-intro manual how to manipul

[R] using spplot (sp package) with 5 quantiles

2007-10-05 Thread Mauricio Zambrano
Hi, I'm using R 2.5.1 and gstat 0.9-39 library and I'm working with the jura data set provided by gstat library. I tried to plot a graph of metal concentrations (let's say Cd) with the command spplot, but I realized that the default lags are equally distributed between Min and Max. I did: librar

[R] Apply vector of labels to columns of data frame

2007-10-05 Thread Steve Powell
Dear list members I would like to apply a vector of labels v=c("lab1","lab2","lab3") to a dataframe df=data.frame(1:3,1:3,1:3) using some kind of loop or apply function. Any ideas? Thanks Steve Powell Checked by AVG Free Edition. 17:03 [[alternative HTML version deleted]] _

Re: [R] Splines

2007-10-05 Thread vito muggeo
As reported in ?spline, you should use splinefun() instead. ff<-splinefun(x,y) ff(x0) where x0=5.25 is your case. best, vito stat stat ha scritto: > I want to fit a cubic spline of x on y. where : > > x > [1] 467 468 460 460 450 432 419 420 423 423 > y > [1] 1 2 3 4 5 6 7 8 9

Re: [R] Matrix package installation problem

2007-10-05 Thread Martin Maechler
> "JMB" == Jean Marie Beduin <[EMAIL PROTECTED]> > on Fri, 05 Oct 2007 09:10:11 +0200 writes: JMB> I need some help yes JMB> I try to install the following package: Matrix_0.999375-2.tar.gz JMB> I have the needed package and R version. JMB> My operating sytem is linux

[R] Splines

2007-10-05 Thread stat stat
I want to fit a cubic spline of x on y. where : x [1] 467 468 460 460 450 432 419 420 423 423 y [1] 1 2 3 4 5 6 7 8 9 10 using the syntax spline(y, x) I got following output : $x [1] 1.00 1.310345 1.620690 1.931034 2.241379 2.551724 2.862069 [8]

Re: [R] Convergence problem in gam(mgcv)

2007-10-05 Thread Simon Wood
Actually the answers to you questions may well be linked On Thursday 04 October 2007 22:11, Ariyo Kanno wrote: > Dear all, > > I'm trying to fit a pure additive model of the following formula : > fit <- gam(y~x1+te(x2, x3, bs="cr")) > ,with the smoothing parameter estimation method "magic"(de

[R] Sample size for reference data (with covariate)

2007-10-05 Thread Karl Knoblick
Hello! Is there a possibilty in R to calculate the sample size for evaluation of reference values? Especially reference values with a covariate age and a factor gender? Any help will be appreciated. Thanks! Karl Heute schon einen Blick in die Zukunft von E-Mails wagen?

[R] R 2.6.0 Windows/lme4 Rblas load problem

2007-10-05 Thread Dieter Menne
Dear Windows Maintainers, after installing R 2.6.0 on Windows 2000 and doing a complete update of the libraries as recommended by B.Ripley, it get the error message: The dynamic link library Rblas could not be found in the specified path Note that the message says "Rblas", not Rblas.dll as e

[R] know java version

2007-10-05 Thread mel
Dear list, My R program has to deal with a 3rd party java program. I would like to know, automatically, which version of java is used when both programs are speaking together. Does anybody have an idea how to obtain such info from R ? Thanks Vincent __ R

Re: [R] print Text on device

2007-10-05 Thread Praveen Kanakamedala
Have you looked into using the xtable package? Xtable supports text but not graphics. The xtable package creates a LaTEX file after which you can use Sweave to create a PDF. The other method that has been sugested before is to use R2HTML and create a HTML file rather than a PDF. R2HTML supports bo

[R] Matrix package installation problem

2007-10-05 Thread Jean Marie Beduin
I need some help I try to install the following package: Matrix_0.999375-2.tar.gz I have the needed package and R version. My operating sytem is linux suse 10.1. I have the following error message /usr/lib/gcc/i586-suse-linux/4.1.0/../../../../i586-suse-linux/bin/ld: ne peut trouver -lgfortran co