similar to: ESS Default function template for R

Displaying 20 results from an estimated 7000 matches similar to: "ESS Default function template for R"

2001 Jun 29
2
Re: ESS and R ver 1.3.0/ graph menu/ save PDF
"SM" == S McClatchie <S.McClatchie> writes: > > SM> I notice that the new option under R ver. 1.3.0 to save a > SM> graph as a pdf file from the graph window menu (file/ save as/ SM> > PDF) works differently (extremely slowly) under ESS, whereas SM> it is > almost instant from the R- gui. > > SM> Does the feature not work
2002 Sep 17
2
legend in image()
System info: Linux slackware R Version 1.5.1 (2002-06-17) ESS 5.1.21 Emacs 21.2.1 ------------------- Colleagues Is there a way to add a legend to an image plot? I don't see any reference to legends in the documentation (so I suppose the answer is no?). Although the documentation says image takes plot() parameters, it isn't clear to me how the usual use of legend in a plot command
2003 Jan 29
2
calling sweave function from latex
System info: Mandrake 9.0 R Version 1.6.1 ESS 5.1.21 Emacs 21.2.1 ------------------- Colleagues I've been calling R-code embedded in my LaTex document using Sweave, but would like to make things more convenient. At present as I understand it you first process the R chunks of code using the Sweave function called from within R to process a "precursor file" e.g. foo.sw to get a
2003 Jan 29
2
calling sweave function from latex
System info: Mandrake 9.0 R Version 1.6.1 ESS 5.1.21 Emacs 21.2.1 ------------------- Colleagues I've been calling R-code embedded in my LaTex document using Sweave, but would like to make things more convenient. At present as I understand it you first process the R chunks of code using the Sweave function called from within R to process a "precursor file" e.g. foo.sw to get a
2002 Sep 09
3
loading data from a specified directory
System info: Linux slackware R Version 1.5.1 (2002-06-17) ESS 5.1.21 Emacs 21.2.1 ------------------- Colleagues I have some text files in a certain directory and want to process them sequentially. So I want to pass the filename identifier into a function and loop through the processing of each file in turn.I've called the file identifier f in this code segment: image.dvm <- function
2001 Apr 01
1
ylab/ expression/ superscript to a bracket
Colleagues ---------------------------------- System info: R version rw1022 on NT ESS v. 5.1.18 using emacs ver. 20.4 ---------------------------------- I have some rather unusual units for acoustic volume backscattering integrated over several metres depth and 10 transmits (which happens to = 160 m along transect). I need to express these units in a graph label. My problem
2001 Mar 12
2
residuals from lowess fit
Colleagues ---------------------------------- System info: R version rw1022 on NT ESS v. 5.1.18 using emacs ver. 20.4 ---------------------------------- I would like to access the residuals from a lowess fit (function lowess() ) as an aid to assessing whether I am over-smoothing or under-smoothing a dataset (as in Cleveland's book "Visualizing data", section 3.3) Unless I
2001 Feb 26
1
trying to find the function banking()
Colleagues ---------------------------------- System info: R version rw1020 on NT ESS using emacs ver. 20.4 ---------------------------------- Can anyone please tell me where to find the function "banking()" containing Cleveland's solution to optimising graph aspect ratio? It is mentioned in Venables and Riply 1994, pg. 112, Ex. 3.7, q. 3.5. I have not found it (or perhaps
2001 Mar 01
0
ESS /NT/ tab replace/ scroll interrupt
Colleagues ---------------------------------- System info: R version rw1020 on NT ESS using emacs ver. 20.4 ---------------------------------- On 1 Mar 01,, Prof Brian D Ripley wrote (re: Re: (off topic) Re: [R] Notepad): > Just to remind people that ESS and FSF Emacs run on Windows too. > (There is or was also an Xemacs port to Windows, but I have very > little experience with
2001 Jan 18
1
r help message
Colleagues ---------------------------------- System info: R version rw1020 on NT ESS using emacs ver. 20.4 ---------------------------------- To keep my scripts short and tidy, I want to call sub-functions and return variables from these for subsequent use in the calling function. e.g. "test.smooth.opc.time.series" <- function() { load.opc.ascii.files() }
2001 Feb 19
1
means by column after split
Colleagues ---------------------------------- System info: R version rw1020 on NT ESS using emacs ver. 20.4 ---------------------------------- I need to get the means for each column of a dataframe in the list created by splitting a data frame. At present, I am getting the mean of all columns in aggregate. The structure of the unsplit data is: > shuttle.tr1[1:10,] juliandate
2003 Oct 01
3
problem downloading Red Hat R-1.7.1-1.i386.rpm
System info: Red Hat 9.0 R Version 1.7.0 ESS 5.1.21 Emacs 21.2.1 ------------------- Colleagues At work I've had to migrate from Mandrake 9.1 to Red Hat 9.0 and I'm reinstalling R. I am having a problem downloading from R-1.7.1-1.i386.rpm from /bin/linux/redhat/9/i386. Basically the download does not complete. I am using mozilla, and when I click on the link the screen corrupts with
2001 Jan 03
1
package/ date/ download problem
Colleagues I want to download the package "date" from CRAN <http://cran.r- project.org/> to get the R-scripts (for version 1.2.0) *** date/INDEX *** as.date Coerce Data to Dates date.ddmmmyy Format a Julian date date.mdy Convert from Julian Dates to Month, Day, and Year date.mmddyy Format a Julian date date.mmddyyyy Format a Julian date date.object Date Objects mdy.date
2001 Mar 09
2
Pager size in 1.2.2 Windows
The following sequence of commands (for example): >my.data<-rnorm(10000, 5, 1) >my.data fills my pager buffer beyond its capacity. When I type "my.data", the pager displays approximately the bottom 7000 cells of the file, but "loses" the first 3000. Is there a some setting that increases the size of the pager buffer, or is this a limit in the Windows version?
2001 May 31
1
graph/save file/jpeg/slow
Colleagues ---------------------------------- System info: R version rw1022 on NT ESS v. 5.1.18 using emacs ver. 20.4 ---------------------------------- I notice that saving a file from the menu bar in the graph window to 100% quality jpeg is very slow (more than 2 minutes). Is this something to be avoided? I know I can save the graph with postscript() in the script, or cut and paste into
2000 Nov 29
1
matlab to R / 2
Colleagues, Thanks for the suggestions concerning reading matlab files into R 1. Regarding documentation for the format of matlab files, please see two manuals that I picked up from the matlab websites. The name of the files are: api_guide.pdf api_ref.pdf Use your web browser to access these files in my FTP directory <ftp://ftp.niwa.cri.nz/incoming/mcclatchie> under the appropriate
2001 Jun 12
2
a problem with rep() ?
Colleagues ---------------------------------- System info: Version 1.2.3 (2001-04-26) on NT ESS v. 5.1.18 using emacs ver. 20.4 ---------------------------------- I am wondering if there is a problem with the function rep(). Both the commands using rep() below were expected to produce 8 twos, but only the second did. x <- rep(2,40*(1-0.8)) length(x) y <- rep(2,40*0.2) length(y)
2001 Jan 18
0
summary/ returning variables from subfunction
Colleagues ---------------------------------- System info: R version rw1020 on NT ESS using emacs ver. 20.4 ---------------------------------- Below is a summary on returning variable from subfunction, Thanks to Brian Ripley and Douglas Bates: To access the variables within a function, return a list or data structure assigned to a variable in the calling function. For more than one varaible,
2001 Mar 09
1
bringing up R documentation for my functions
Colleagues ---------------------------------- System info: R version rw1022 on NT ESS v. 5.1.18 using emacs ver. 20.4 ---------------------------------- I want to documnet a function I've written. I used prompt(function.name) to create an ascii R documentation file. I moved the .Rd file into a subdirectory called rw1022/library/my.functions/man Now I want to load the help using
2003 Feb 10
0
calling sweave function from LaTex re directories, formatting
System info: Mandrake 9.0 R Version 1.6.1 ESS 5.1.21 Emacs 21.2.1 ------------------- Colleagues I have followed suggestions by David Whiting, Friedrich Leisch and Frank Harrell, but have a few more queries. 1. On formatting: I added the suggested sweave customization to my .emacs file ; Sweave customisation (defun Rnw-mode () (require 'ess-noweb) (noweb-mode) (if (fboundp