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
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 <lynda_zhang at yahoo.com> To: r-help at stat.math.ethz.ch 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.> ?interpNo documentation for 'interp' in specified packages and libraries: you could try 'help.search("interp")'> library(akima) > ?interpHelp 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 > > ______________________________________________ > R-help at stat.math.ethz.ch 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 petr.pikal at precheza.cz
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 > > ______________________________________________ > R-help at stat.math.ethz.ch 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.