[R] LIMMA: makeContrasts() function

2006-07-31 Thread Jay Shin
Hello, I am trying to run a makeConstrasts() function to compute eBayes t- test with the following design list (six hybridizations and three samples -in duplicates): A BC 1 1 00 2 1 00 3 0 10 4 0 10 50 01 6

Re: [R] generate bi-variate normal data

2006-07-05 Thread Shin, David
ginal Message- From: Liaw, Andy [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 11:50 AM To: Shin, David; 'r-help@stat.math.ethz.ch' Subject: RE: [R] generate bi-variate normal data From: Shin, David > > Dear all, > > I would like to generate bi-variate normal

Re: [R] generate bi-variate normal data

2006-07-05 Thread Shin, David
Mark, Thanks. I am still waiting for someone to help me with this matter. I will appreciate for any insight from you or the others. Thanks. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, July 01, 2006 12:27 AM To: Shin, David Cc: r-help

[R] generate bi-variate normal data

2006-06-30 Thread Shin, David
Dear all, I would like to generate bi-variate normal data given that the first column of the data is known. for example: I first generate a set of data using the command, x <- rmvnorm(10, c(0, 0), matrix(c(1, 0, 0, 1), 2)) then I would like to sum up the two columns of x: x.sum <- apply(x, 1, su

[R] summary: Call SAS from R

2005-08-24 Thread Shin, David
D] On Behalf Of Prof Brian Ripley Sent: Wednesday, August 24, 2005 12:33 PM To: r-help@stat.math.ethz.ch Subject: Re: [R] Call SAS from R Date: Wed, 24 Aug 2005 18:05:44 +0100 (BST) From: Prof Brian Ripley <[EMAIL PROTECTED]> To: David Forrest <[EMAIL PROTECTED]> Cc: "Shin, Da

Re: [R] Call SAS from R

2005-08-24 Thread Shin, David
as institute\\v8\\sas.exe test" in dos environment, it didn't work, either. I will appreciate very much if someone can help a bit. Thanks. David -Original Message- From: Don MacQueen [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 11:38 AM To: Shin, David; r-help@sta

Re: [R] Call SAS from R

2005-08-24 Thread Shin, David
Thanks for some kind responses from the list. Maybe I should present my data here a little bit to explain why I want to use SAS. Below is part of my data set. First, I need to skip the first 9 lines which I can use skip=9 to do this. Second, I need to read to rows of data. the first row starts w

[R] Call SAS from R

2005-08-24 Thread Shin, David
Hi All, I am new to post question on this list. I apologize if this question is too easy or irrelevant. I am doing a simulation study and I need to read a data file that can be easily read by SAS. So, what I try to do is to execute SAS in R and then read the output of SAS to R. I try the followi

[R] output data in a fixed format

2005-01-21 Thread Shin, David
Dear List, I would like to write my output data to a file with the fixed format like what you can do in SAS. For example: put @1( variable1 ) (10.5) @11 ( variable 2) ($5.) : : etc. Is there a way in "R" that would allow me to do the same thing? Thank you for your a

[R] Files and classes in a package?

2004-07-22 Thread Shin, Daehyok
tions for this somewhat trivial issue. But, I can’t find it. Can you help me? Thanks. Daehyok Shin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] where does R search when source()?

2004-07-11 Thread Shin, Daehyok
> >Considering replies to my question, typical practices of R users seem: > >1. Creating a special function to source frequently used scripts. > > That's not right. The practice I was describing is to have frequently > used code in a function, not in a script. Here, I meant "scripts " is "script

RE: [R] where does R search when source()?

2004-07-11 Thread Shin, Daehyok
ons. What I asked is the way to set up default search paths for source function, whether or not files in the paths contain a set of functions or simple script code. Daehyok Shin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listi

RE: [R] where does R search when source()?

2004-07-10 Thread Shin, Daehyok
when a script file is edited or added. My suggestion can save the effort. In the sense to make R more convenient environment to users, is it trivial? Daehyok Shin > -Original Message- > From: Roger D. Peng [mailto:[EMAIL PROTECTED] > Sent: Saturday, July 10, 2004 PM 11:14 >

RE: [R] where does R search when source()?

2004-07-10 Thread Shin, Daehyok
more easily. What do you think of it? Daehyok Shin > -Original Message- > From: Liaw, Andy [mailto:[EMAIL PROTECTED] > Sent: Saturday, July 10, 2004 PM 10:07 > To: '[EMAIL PROTECTED]'; R, Help > Subject: RE: [R] where does R search when source()? > > > N

RE: [R] where does R search when source()?

2004-07-10 Thread Shin, Daehyok
word, any way to set up default search paths for script files? Daehyok Shin (Peter) > > The former. No documentation says otherwise, so why would you > think that it > might search somewhere el

[R] where does R search when source()?

2004-07-10 Thread Shin, Daehyok
Exactly where does R search for foo.R if I type source(“foo.R”)? Only from current working directory (same as getwd()), from all directories specified by e.g. $PATH? Thanks. Daehyok Shin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

[R] Module for Recursive Instrumental Variable Method

2004-06-25 Thread Shin, Daehyok
I am looking for R programs implementing RIV(Recursive Instrumental Variable) method to identify and estimate constant parameter TF(Transfer Function) models. Help please, if you know it. Daehyok Shin (Peter) __ [EMAIL PROTECTED] mailing list https

RE: [R] system shell emulation in R

2004-06-24 Thread Shin, Daehyok
Is it difficult in R to create a function calling system() with user's inputs iteratively? Daehyok Shin (Peter) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Prof Brian Ripley > Sent: Thursday, June 24, 2004 PM 2:28 > To: Shin, D

[R] system shell emulation in R

2004-06-24 Thread Shin, Daehyok
# Return to R > getwd() [1] "/home/a" Thanks in advance. Daehyok Shin (Peter) Terrestrial Hydrological Ecosystem Modellers Geography Department University of North Carolina-Chapel Hill [EMAIL PROTECTED] "We can do no great things, only small things with great love."

RE: [R] A way to list only variables or functions?

2004-06-21 Thread Shin, Daehyok
Thanks, Petr. The ls.objects function displays a really nice summary about objects. Surely, I will use it more often than ls or ls.str. Daehyok Shin > -Original Message- > From: Petr Pikal [mailto:[EMAIL PROTECTED] > Sent: Monday, June 21, 2004 AM 11:01 > To: Duncan Mur

RE: [R] A way to list only variables or functions?

2004-06-21 Thread Shin, Daehyok
I am not familar with the unique terminology of R. What I mean with a variable is a sort of a reference which points to a function or a value. Daehyok Shin > -Original Message- > From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] > Sent: Monday, June 21, 2004 AM 10:26 > To: S

RE: [R] binary data

2004-06-21 Thread Shin, Daehyok
I use NetCDF file format using ncdf package for binary data handling. For more complex structure, HDF format will be better, which I do not try in R. Daehyok Shin > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > ethz.ch]On Behalf Of Moises Hassan > S

RE: [R] A way to list only variables or functions?

2004-06-21 Thread Shin, Daehyok
practical value. Daehyok Shin > -Original Message- > From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 20, 2004 PM 12:03 > To: Shin, Daehyok > Cc: [EMAIL PROTECTED] > Subject: RE: [R] A way to list only variables or functions? > > > On Sun,

RE: [R] A way to list only variables or functions?

2004-06-20 Thread Shin, Daehyok
Interesting, but it seems too complex. In my opinion, just listing functions or non-functions meets my need. Anyway, thanks. Daehyok Shin (Peter) > -Original Message- > From: S?en Merser [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 20, 2004 AM 10:51 > To: Shin > Subject

RE: [R] A way to list only variables or functions?

2004-06-20 Thread Shin, Daehyok
Neat! Thanks. How about incorporating this support into standard commands, ls() or objects()? Daehyok Shin (Peter) > -Original Message- > From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 20, 2004 AM 10:06 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >

[R] A way to list only variables or functions?

2004-06-19 Thread Shin
I am curious if there is any way to list only variables or functions in current environment, rather than listing all objects? Thanks. -- Daehyok Shin (Peter) Geography Department Univ. of North Carolina-Chapel Hill __ [EMAIL PROTECTED] mailing list

RE: [R] Vectors of years, months, and days to dates?

2004-06-07 Thread Shin, Daehyok
ckage. Daehyok Shin (Peter) > -Original Message- > From: Richard A. O'Keefe [mailto:[EMAIL PROTECTED] > Sent: Monday, June 07, 2004 PM 10:50 > To: [EMAIL PROTECTED] > Subject: RE: [R] Vectors of years, months, and days to dates? > > > as.Date(c(years, months,

RE: [R] Vectors of years, months, and days to dates?

2004-06-07 Thread Shin, Daehyok
assume some functions are only called directly by users in an interactive shell? Please consider positively this kind of simple interface for as.Date. I am quite sure this operation will be used widely once implemented. as.Date(c(years, months, days)) Is there no one supporting my idea? Daehyok Shin

RE: [R] Vectors of years, months, and days to dates?

2004-06-07 Thread Shin, Daehyok
Thanks, but, what I want is to convert three vectors of years, months, and days directly into POSIXlt or Date objects without creating character vectors. Daehyok Shin (Peter) Terrestrial Hydrological Ecosystem Modellers Geography Department University of North Carolina-Chapel Hill [EMAIL

RE: [R] Vectors of years, months, and days to dates?

2004-06-07 Thread Shin, Daehyok
> > res <- as.POSIXlt(paste(years, months, days, sep="-")) This command still convert numbers to a character vector, right? Daehyok Shin (Peter) Terrestrial Hydrological Ecosystem Modellers Geography Department University of North Carolina-Chapel Hill [EMAIL PROTECTED]

Re: [R] Vectors of years, months, and days to dates?

2004-06-07 Thread Daehyok Shin
How can I create POSIXlt directly from the numbers? I failed to find the solution from help documents. Daehyok --On Monday, June 07, 2004 4:44 PM +0100 Prof Brian Ripley <[EMAIL PROTECTED]> wrote: On Mon, 7 Jun 2004, Shin, Daehyok wrote: The interface for dates in R is a little confusing

[R] Vectors of years, months, and days to dates?

2004-06-07 Thread Shin, Daehyok
his solution the ISOdate function converts the vectors into characters, which can cause serious performance and memory loss when the vectors of years, months, and days are huge. I am quite sure there is much better solution for it. What is it? Thanks.

RE: [R] How to define a destructor of an object?

2004-05-18 Thread Shin, Daehyok
Thanks, Thomas. This is exactly what I want. I am wondering why there is no explicit mention about this function, such as, in the help document of gc(). Daehyok Shin (Peter) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Thomas Luml

[R] How to define a destructor of an object?

2004-05-18 Thread Shin, Daehyok
Is there any way to define a destructor method of an object, which is called automatically when garbage collector reclaims it? Daehyok Shin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the

RE: [R] How to restore and edit saved graphics?

2004-05-16 Thread Shin, Daehyok
plot? Interestingly, there is no mention about dev.control() in the help document of recordPlot(). I think it should be there. Thanks again. Daehyok Shin (Peter) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Gabor Grothendieck > Sent: Satu

RE: [R] How to restore and edit saved graphics?

2004-05-15 Thread Shin, Daehyok
Is it so difficult to develop a function or an object to generate all the code automatically in R? Daehyok Shin (Peter) Terrestrial Hydrological Ecosystem Modellers Geography Department University of North Carolina-Chapel Hill [EMAIL PROTECTED] "We can do no great things, only small things

[R] How to restore and edit saved graphics?

2004-05-15 Thread Shin
I am looking for a function to restore saved graphics for further editing, such as changing its title, labels, or legend. How can I do it in R? Thanks in advance. -- Daehyok Shin (Peter) Geography Department Univ. of North Carolina-Chapel Hill

[R] Can't find memory.size()

2004-04-19 Thread Shin, Daehyok
I try memory.size function to find out available memory size, but surprisingly R complains it can't find the function. ?memory.size also failed. Is it not in the base library? If so, why can't my R find it? I am using the binary 1.9.0 version for Mandrake 9.1. Thanks in advance. Da

RE: [R] Only referenc copy when calling C routine?

2004-04-11 Thread Shin, Daehyok
Thanks, Murdoch. The .Call is what I want. In R extension manual, " Neither .Call nor.External copy their arguments. You should treat arguments you receive through these interfaces as read-only. " Daehyok Shin > -Original Message- > From: Duncan Murdoch [mailto:[EMAIL P

RE: [R] Only referenc copy when calling C routine?

2004-04-11 Thread Shin, Daehyok
modeling system in R, where some C functions should be called more than 1000 times with arguments of huge arrays. So, the issue is important for better performance. Thanks again, Daehyok Shin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

[R] Only referenc copy when calling C routine?

2004-04-11 Thread Shin, Daehyok
not passed to the compiled code)." Thanks in advance. Daehyok Shin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] More user-friendly error message needed.

2004-04-08 Thread Shin, Daehyok
than language itself. So, even though I was a little disappointed at OOP of R, I will continue to look at R. Cheers. Daehyok Shin (Peter) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Bob Cain > Sent: Wednesday, April 07, 2004 PM 4:32 >

Re: [R] More user-friendly error message needed.

2004-04-07 Thread Shin
shell, I believe we should try to give more informative messages at least for the mistakes. I think the error I reported is one of the mistakes. Unfortunately, I don't have ability to create a patch for it. Hopefully, somebody to fix it soon for better R. Daehyok Shin On Wed, 2004-04-07 at

[R] More user-friendly error message needed.

2004-04-07 Thread Shin
this kind of common error. Daehyok Shin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] A package to read and write NetCDF?

2004-04-05 Thread Shin, Daehyok
I am looking for a package to read and write NetCDF files. NetCDF package says it can only read, not write. Another package for the standard binary file format? Daehyok Shin __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

RE: [R] Deep copy in R

2004-04-05 Thread Shin, Daehyok
Hm. Smarter than I expected. But, any special reason why the 6th line clones another vector? To me, just reference copy seems to be enough for the purpose. 6 xf = date.frame(x=x) Daehyok Shin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf

[R] Deep copy in R

2004-04-05 Thread Shin, Daehyok
4 y = x 5 y[10] = 1 6 xf = date.frame(x=x) 7 xf$x[10] = 1 8 return(y) } Daehyok Shin Terrestrial Hydrological Ecosystem Modellers Geography Department University of North Carolina-Chapel Hill [EMAIL PROTECTED] "We can do no great things, only small thi

[R] Time Series?

2004-02-14 Thread Shin
Hi, let me ask a basic question. Is there any class like timeDate or timeSeries in S-PLUS? I have a trouble in finding the classes in R manuals. Thanks in advance. Shin, Daehyok __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

[R] Missing Tcl.h in installation

2003-12-15 Thread Shin Tomoe
Dear Sir, I am a user of R, and I just downloaded rw1081.exe from your site. When I install the said file, it reports that a file is missing. I don’t know the cause. Its the only mising file because when I press ignore, everyting installs just fine. Anyways, Sir, can you send me the lacking fi