Re: [R] multiple return

2007-06-22 Thread Mahbub Latif
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- A H M Mahbub Latif, PhD Assistant Professor Applied Statistics Institute of Statistical Research and Training University of Dhaka, Dhaka 1000, Bangladesh web : http://www.isrt.ac.bd/mlatif

Re: [R] make apply() return a list

2004-11-01 Thread Mahbub Latif
How about this... x = matrix(1:27, ncol=9, byrow=T) nr= nrow(x) lapply(1:nr, function(i) matrix(x[i,], nrow=3, byrow=T)) Mahbub. On Mon, 1 Nov 2004 19:37:08 +0100, Arne Henningsen [EMAIL PROTECTED] wrote: Hi, I have a dataframe (say myData) and want to get a list (say myList) that

Re: [R] (no subject)

2004-10-30 Thread Mahbub Latif
?density On Sat, 30 Oct 2004 13:03:11 -0400 (EDT), Yulei He [EMAIL PROTECTED] wrote: Hi, there. Does anybody know how to plot a smooth density plot for some data simulated from certain distribution? Thanks. Yulei $$$ Yulei He 1586 Murfin Ave. Apt

Re: [R] Imputing missing values

2004-09-01 Thread Mahbub Latif
Try this: newPrice = unlist(sapply(Price, Crop:Season, function(x){ x[is.na(x)]=mean(x,na.rm=T); return(x); })) --- Jan Smit [EMAIL PROTECTED] wrote: Dear all, Apologies for this beginner's question. I have a variable Price, which is associated with factors Season and

[R] off topic: C/C++ codes for pseudo inverse

2004-06-16 Thread Mahbub Latif
Hi, I am looking for C/C++ codes for computing generalized inverse of a matrix. Can anyone help me in this regard? Thanks, Mahbub. __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] RODBC installation in debian

2004-04-22 Thread Mahbub Latif
Hello List, I am trying to install RODBC package in a debian linux box but getting the following message. Can anyone help me to find what I am doing wrong here: $ R CMD INSTALL RODBC_1.0-4.tar.gz ### * Installing *source* package 'RODBC' ... checking for gcc... gcc checking for C compiler

Re: [R] large fonts on plots

2004-02-11 Thread Mahbub Latif
see ?par Mahbub. --- Piet van Remortel [EMAIL PROTECTED] wrote: Hi all, I need to enlarge te fonts used oo R-plots (plots, histograms, ...) in labels and titles etc. I seem to be unable to figure out how to do it. The problem is that the titles of the plots are simply unreadable

[R] lattice (qqmath) question

2003-09-24 Thread Mahbub Latif
Hi, In lattice, is it possible to get qqplot for t distribution in different panels with different dfs. For example, # in panel 1 qqmath(~x, distribution=function(p) qt(p, df=3)) # in panel 2 qqmath(~x, distribution=function(p) qt(p, df=5)) etc... Thanks, Mahbub.

[R] lattice question--- different ylim

2003-09-04 Thread Mahbub Latif
Hi there, I have four panels in a lattice bwplot. I want to have two different ylim for the panels, for example panels [1,1] and [1,2] with ylim=c(0,200) and panels [2,1] and [2,2] with ylim=c(0,100). Thanks for help in advance. Mahbub. __ [EMAIL

[R] anova(lme object)

2003-08-21 Thread Mahbub Latif
Hi, I use lme to fit models like R res1 - lme(y~A+B, data=mydata, random=~1|subject) R res2 - lme(y~B+A, data=mydata, random=~1|subject) (only difference between these two models are the sequence in which the indep variables are written in formula) where y is continuous and A, B, and subject

Re: [R] greek in main title

2003-07-22 Thread Mahbub Latif
Hi, change the name of function argument theta to something else say thta and then use the following heading - expression(paste(Exp w/ , theta, =, thta, , n = , n[i])) Hope it will help... Mahbub. --- [EMAIL PROTECTED] wrote: Hello, I have written a function that demonstrates the

Re: [R] bold AND italic as font in text()

2003-07-21 Thread Mahbub Latif
use text(, , expression(bold(what you want to write))) Mahbub. --- Tord Snall [EMAIL PROTECTED] wrote: Dear all, Is it possible to somshow plot text as italic AND bold. I tried font=c(2,3) in text(), but it doesn't work. It seems like the latter value is used. Thanks in advance!

[R] installing XML in linux

2003-06-09 Thread Mahbub Latif
Hi, I was trying to install XML package in a linux (dabian) machine and got the following error message. I am not sure whether there is any error in my linux installion. I appreciate suggestions to install XML properly in this machine. Thanks in advance. Mahbub. ##Errors $ R CMD

[R] Re: [BioC] installing XML in linux

2003-06-09 Thread Mahbub Latif
Thanks a lot Prof Bates. One more thing... What Debian packages should I install to install R packages Rgraphviz and rhdf5? Mahbub. --- Douglas Bates [EMAIL PROTECTED] wrote: You will need to install the Debian package libxml-dev before you can install the R XML package. Mahbub Latif

[R] Re: [BioC] installing XML in linux

2003-06-09 Thread Mahbub Latif
apt-get install libhdf5-serial-dev To install libhdf5 what I am getting $ apt-get install libhdf5-serial-dev libhdf5-serial-dev: Depends: libhdf5-serial (= 1.4.5-2) but it is not going to be installed then I try... $ apt-get install libhdf5-serial libhdf5-serial: Depends: libc6 (=

[R] trellis plot

2003-03-21 Thread Mahbub Latif
Hi there, I need some help about trellis plot. I have the following plot. x - c(rep(LETTERS[1:4],13), rep(LETTERS[4:1],12)) y - rnorm(100)z - rep(1:2,50)bwplot(y~factor(x)|z,layout=c(2,1), panel=function(x,y) panel.bwplot(x,y,horizontal=F)) Now I want to place "*" on the positions (1,-1.5) in the