Re: [R] R questions
You might want to read
Ligges (2003): R Help Desk: Getting Help - R's Help Facilities and
Manuals, R News 3(1), 26--28,
http://cran.r-project.org/doc/Rnews/Rnews_2003-1.pdf
Uwe Ligges
Lynda wrote:
> I have a few questions for R:
>
> 1. Other than using a built-in function such as mean(), how do I know if
> it is installed in my current version of R?
>
> 2. To get help in R, I can use several ways:
> ?sort
> help.search("sort")
> help(sort)
> apropos("sort")
> the help menu
>
> are there any other ways to get help?
>
> 3. When I see a help menu for a function, does it mean the function is
> installed?
>
> 4. If I execute a program file that contains output files that doesn't
> have a path specified, which path is it going to output to? Is it the
> Current Working Directory that the output file is going to output? if I
> change the working directory by using setwd(), is that going to change
> where the output file path permanently until I specify it again?
>
> Thanks a lot!
> Lynda
>
> __
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
__
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Re: [R] R questions
Hi please try to consult some introduction manual and see some suggestions below On 18 Sep 2006 at 17:55, Lynda wrote: Date sent: Mon, 18 Sep 2006 17:55:02 -0400 From: Lynda <[EMAIL PROTECTED]> To: [email protected] Subject:[R] R questions > I have a few questions for R: > > 1. Other than using a built-in function such as mean(), how do I know > if it is installed in my current version of R? see the difference between installed packages (e.g. those you have in your library directory and packages attached by library command. > ?interp No documentation for 'interp' in specified packages and libraries: you could try 'help.search("interp")' > library(akima) > ?interp Help for 'interp' is shown in the browser > > > 2. To get help in R, I can use several ways: > ?sort > help.search("sort") > help(sort) > apropos("sort") > the help menu > > are there any other ways to get help? It is not enough for you? > > 3. When I see a help menu for a function, does it mean the function is > installed? See above > > 4. If I execute a program file that contains output files that doesn't > have a path specified, which path is it going to output to? Is it the > Current Working Directory that the output file is going to output? if > I change the working directory by using setwd(), is that going to > change where the output file path permanently until I specify it > again? AFAIK Yes. HTH Petr > > Thanks a lot! > Lynda > > __ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html and provide commented, > minimal, self-contained, reproducible code. Petr Pikal [EMAIL PROTECTED] __ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R questions
Yuying Shi wrote: > Dear Sir/Madam, > I am a beginner in R. Here is my questions. > 1. Can you give me one test for randomness (a name and descriptive > paragraph is sufficient). > 2. I have learned a uniform random number generator [e.g. not the > algorithms: i)Wichmann-Hill, ii) Marsaglia-Multicarry, iii) Super-Duper > (Marsaglia), iv) Mersenne-Twister, v) TAOCP-1997 (Knuth), or vi) TAOCP-2002 > (Knuth)] . Is there any other method besides that? > 3. How to generate 100 random standard normal deviates using the Box-Muller > method for standard normal random deviates and sort the sequence, smallest > to largest? > Your kind help is greatly appreciated. Thanks in advance! > best wishes > yuying shi Please do not ask the list to do your homework (I'd highly suspect this is homework, in particular from your first question). Excercises are there to be solved by yourself. And if that fails, what about asking your lecturer rather than thousands of others? Uwe Ligges > [[alternative HTML version deleted]] > > __ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] R questions
Hi There is a very good introduction script to R on http://www.r-project.org/ under manuals, including an index of nice functions. For example you will find the basic plots, how to sort vectors and so on. Furthermore have a look at ?RSiteSearch It is very useful to search in R archives for similar problems. Lots of answers are already there and only wait to be found. So there is a good chance that you will find the information that you are looking for in these archives. Best regards, Christoph Buser -- Christoph Buser <[EMAIL PROTECTED]> Seminar fuer Statistik, LEO C13 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-44-632-4673 fax: 632-1228 http://stat.ethz.ch/~buser/ -- Yuying Shi writes: > Dear Sir/Madam, > I am a beginner in R. Here is my questions. > 1. Can you give me one test for randomness (a name and descriptive > paragraph is sufficient). > 2. I have learned a uniform random number generator [e.g. not the > algorithms: i)Wichmann-Hill, ii) Marsaglia-Multicarry, iii) Super-Duper > (Marsaglia), iv) Mersenne-Twister, v) TAOCP-1997 (Knuth), or vi) TAOCP-2002 > (Knuth)] . Is there any other method besides that? > 3. How to generate 100 random standard normal deviates using the Box-Muller > method for standard normal random deviates and sort the sequence, smallest > to largest? > Your kind help is greatly appreciated. Thanks in advance! > best wishes > yuying shi > > [[alternative HTML version deleted]] > > __ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
