similar to: passing subsets of '...' to several other functions

Displaying 20 results from an estimated 20000 matches similar to: "passing subsets of '...' to several other functions"

2007 Jan 06
1
listing all functions in R
Dear List, I'm building an R syntax highlighting file for GeSHi [*] for a website I am currently putting together. The syntax file needs a list of keywords to highlight. How can I generate a list of all the functions in a base R installation? Ideally the list would be formatted like this: "'fun1', 'fun2', 'fun3'" when printed to the screen so I can copy
2011 Nov 07
0
SUCCESS
finally R 2.14 runs for me on fedora linux !!!!!! thanks to gavin, marc, jose and pierre for helping me. but especially gavin. I still have to clean things up and make install instructions so I can send it to this list. But first I need to sleep. I will send the instructions later today since that's absolutely THE LEAST i can do. I haven't gotten much sleep the last couple of days and my
2012 Feb 20
1
Controlling simplification in apply()?
Dear list, Fully according to the documented behaviour, I was bitten by apply() simplifying results to vectors or arrays when the lengths of the individual objects returns by FUN are the same (over simplification). sapply() has argument simplify with default TRUE to control whether it attempts to simplify the returned objects or not. I do find it a little annoying that one is not able to force
2010 Nov 10
0
OT : R Applications for Force.com/ Salesforce
No I am not on the payroll for these people. or any relation of any kind ;) I just like cloud computing thats all Appreciate your kind consideration Mr Simpson- I was not sure of the list so mailed all 3- . The subject line has been modified-hopefully there should be a technical answer to a technical question. Websites- http://decisionstats.com http://dudeofdata.com Linkedin-
2011 Mar 27
1
Bug in tools::compactPDF() in 2.13-0-alpha
Dear List, There seems to be an bug in compactPDF() or at least an inconsistency with the documented behaviour. The documentations states: Details: This by default makes use of ?qpdf?, available from <URL: http://qpdf.sourceforge.net/>, including a Windows binary. If ?gs_cmd? is non-empty, GhostScript is used. I don't have qpdf on my system so planned to use
2007 Sep 20
2
Plotmath issue superscript "-"
Dear List, I'm trying to typeset some chemical ions in axis labels. These have both super and subscript components, and for some, I need a superscript "-". In LaTeX I might use $NO_3^-$ to do the typesetting, but I'm having a problem getting the correct invocation for expression: > expression(NO^{-}[3]) Error: syntax error, unexpected '}' in
2007 Aug 03
0
correct Rd markup for \value{}
Dear DevelopeRs Several functions in a package of mine have complex returned objects that are lists within the returned list. I wish to document each of the components of these sublists. If I do this within a \value{} section and nest \item within an existing \item, I get indented R-help sections in the standard help view (eg as shown by ?foo in Linux), but not in the PDF. For example:
2009 Aug 26
1
Batch replacement, by factor, of values in a data frame
Dear List, I'm wondering if there is a better/cleaner/more efficient way of replacing 0 values in a variable with the minimum of the non-missing and non-zero values of that same variable, but doing it within the levels of a factor? Consider the dummy example data presented at the end of my message. Within each 'Site' there are some 0 values and possibly some NA's. I can compute
2011 Jan 27
1
Minor typo in influence.measures.Rd ?
Dear list, There is, I believe, a minor typo in the example section of influence.measures.Rd. In the final example the word `does` appears where I suspect `dose` is required: I couldn't remember exactly what format patches should be in, so here is one as diff would produce: Index: devel/src/library/stats/man/influence.measures.Rd
2007 Jun 23
2
Names of objects passed as ... to a function?
Dear list, I have a function whose first argument is '...'. Each element of '...' is a data frame, and there will be at least 2 data frames in '...'. The function processes each of the data frames in '...' and returns a list, whose components are the processed data frames. I would like to name the components of this returned list with the names of the original data
2006 Jun 16
1
problem with legend on other graphics devices
Hi, I have a bit of a problem with a legend in png, eps and pdf plots produced from a custom plotting function. I was writing a little function to produce some stock plots for a routine analysis conducted in our lab. I have a wrapper function figures() (see below) that produces eps, png and pdf versions of the lab output. When I draw the plot on the X11() device the correct amount of space is
2009 May 09
1
Improve aggregate.default ...?
Hi, I find it a bit annoying that aggregate.default forces the returned object to loose the 'name' of the variable aggregated, replacing it with 'x'. A brief example: > dat <- data.frame(A = runif(100), B = rnorm(100), + Group = gl(4, 25)) > with(dat, aggregate(A, by = list(Group = Group), FUN = mean)) Group x 1 1 0.6523228 2 2
2009 Aug 28
1
Plotmath, sweave and lattice graphics interaction problem
Dear List, I have hit this problem with using a plotmath expression in an axis label on a lattice plot I'm including in a Sweave document. The actual document is far too long and boring (unless you are interested in the hydrochemistry of upland lakes) to include here, but the following minimal example reproduces the problem; basically, the PDF produced by Sweave has missing characters in the
2011 Apr 05
1
Inconsistency between rowMeans documentation and reality?
Dear List, I'm not even sure this is an issue or not, but ?rowMeans has: Value: A numeric or complex array of suitable size, or a vector if the result is one-dimensional. The ?dimnames? (or ?names? for a vector result) are taken from the original array. If there are no values in a range to be summed over (after removing missing values with ?na.rm = TRUE?), that
2008 Apr 12
1
2.7.0 beta (rev 45263) failing 'make vignettes'
Dear list, On Fedora 8 I downloaded the beta version of R via svn. make and make check-all worked fine, but make vignettes is failing with: make[1]: Entering directory `/home/gavin/R/2-7-patched/build/src/library' building/updating vignettes for package 'grid' ... processing 'displaylist.Snw' /usr/bin/texi2dvi: pdflatex exited with bad status, quitting. Error in
2009 Jun 05
1
Bug in print.Arima and patch
Dear List, A posting to R-Help exposed this problem with the print method for objects of class Arima: > set.seed(1) > x <- arima.sim(n = 100, list(ar = 0.8897, ma = -0.2279)) > mod <- arima(x, order = c(1,0,1)) > coefs <- coef(mod) > mod2 <- arima(x, order = c(1,0,1), fixed = coefs) > mod2 Call: arima(x = x, order = c(1, 0, 1), fixed = coefs) Coefficients: Error
2008 Feb 25
1
r44608 fails make check-all in scatter.smooth example
Dear List, Having had my appetite sufficiently whetted by Prof. Ripley's email about the new graphics capabilities in Unixes, I wanted to try them out. I updated to svn r44608, configured with the following options: R is now configured for x86_64-unknown-linux-gnu Source directory: .. Installation directory: /usr/local C compiler: gcc -O3 -g -std=gnu99
2009 Jan 13
1
Missing links on Windows and \link[bar]{foo}; clarification
Dear List, In one of my packages on R-Forge I have a custom panel function for Lattice graphics. In the Rd file for this panel function I want to provide links to some lattice functions (in package lattice). My first instinct was to use: \code{\link[lattice]{panel.xyplot}} for example. However, I missed a few references to lattice functions and just marked them up as \code{\link{panel.xyplot}}.
2010 May 26
1
Custom axis function in lattice:::xyplot
Dear List, I have been writing a Lattice function to draw what we call stratigraphic diagrams, these are diagrams with a panel for each species showing a time series of abundance, but drawn vertically to represent time passing from bottom of plot towards to top. I am most of the way there with this now, but I want to do away with the strip on each panel and instead draw a custom top axis with a
2006 May 20
1
intervals from cut() as numerics?
Hi, Given some example data: dat <- seq(4, 7, by = 0.05) x <- sample(dat, 30) y <- sample(dat, 30) error <- x - y I have broken the rage of x into 10 groups and I can calculate the bias (mean(error)) for each of these 10 groups: groups <- cut(x, breaks = 10) max.bias <- aggregate(error, list(group = groups), mean) max.bias group x 1 (4,4.3] -0.7750000 2