[R] Windows Installation Without Third-Party Packages

2015-04-09 Thread Elliot Joel Bernstein
7;t update those packages. Is there any way to just install R without any third-party packages, and let individual users install the packages they want? Thanks. - Elliot [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] Repeated Aggregation with data.table

2012-09-21 Thread Elliot Joel Bernstein
ean(z)), by = eval(parse(text = sprintf("list(%s)", paste(x, collapse=","] I think that's a pretty ugly solution (although it does work), but I haven't come up with anything better. Any suggestions? Thanks. - Elliot On Tue, Sep 11, 2012 at 11:33 AM, El

Re: [R] Repeated Aggregation with data.table

2012-09-11 Thread Elliot Joel Bernstein
list(y)] it does the wrong thing, because sum(y) in each group is just the common value, rather than that value times the length. Is there any way around this? Obviously I could rewrite the expression if I know I'm going to by grouping by y, but I'd like it to be generic. Thanks. -

[R] Repeated Aggregation with data.table

2012-08-07 Thread Elliot Joel Bernstein
can reuse, similar to the function "f" above. Can someone please explain how to do that? Thanks. - Elliot -- Elliot Joel Bernstein, Ph.D. | Research Associate | FDO Partners, LLC 134 Mount Auburn Street | Cambridge, MA | 02138 Phone: (617) 503-4619 | Email: elliot.bernst...@fdopartner

Re: [R] Thinning Lattice Plot

2012-07-31 Thread Elliot Joel Bernstein
I see. I typically use a (one-sided) formula as the first argument to Ecdf, but didn't even think about that distinction in putting together this example. Thanks again for your help. - Elliot On Tue, Jul 31, 2012 at 12:46 PM, Deepayan Sarkar wrote: > On Tue, Jul 31, 2012 at 6:43 PM

Re: [R] Error Installing Package with Dependency on "Matrix"

2012-07-31 Thread Elliot Joel Bernstein
A follow up on this issue...if I first build the package using "R CMD build temp", I can install the resulting .tar.gz file from within R using the "install.packages" command, but I still can't install it from the command line using "R CMD INSTALL". - Ellio

[R] Error Installing Package with Dependency on "Matrix"

2012-07-31 Thread Elliot Joel Bernstein
failed for package ‘temp’ * removing ‘/home/ebernstein/Rlib_2.15.1/temp’ If I remove the dependency on "Matrix", it installs fine. I'm using R 2.15.1 on linux, and version 1.0-6 of the Matrix package. Can anyone explain what's going on here? Thanks. - Elliot -- Elliot Joel Bernste

Re: [R] Thinning Lattice Plot

2012-07-31 Thread Elliot Joel Bernstein
just call the "histogram" function with a different prepanel and panel function. Is it not considered a lattice plot only because it isn't part of the lattice package? Thanks. - Elliot On Tue, Jul 31, 2012 at 2:32 AM, Deepayan Sarkar wrote: > On Tue, Jul 31, 2012 at 2:43 AM, El

[R] Thinning Lattice Plot

2012-07-30 Thread Elliot Joel Bernstein
possible to see that much detail. For example: require(Hmisc) x <- rnorm(1e6) pdf("test.pdf") Ecdf(x) dev.off() The resulting pdf files is 31MB. Is there any easy way to get a smaller pdf file without having to manually prune the dataset? Thanks. - Elliot -- Elliot Joel Berns

[R] combineLimits and Dates

2012-06-25 Thread Elliot Joel Bernstein
d | g, groups = h, data = dat, type = 'l', scales = list(relation = "free"), auto.key = TRUE) plt1 <- useOuterStrips(plt1) plt1 <- combineLimits(plt1) The x-axis labels are right after the call to 'useOuterStrips' but they get converted to numeric after the call to '

[R] "Tight" Axes in Prepanel Function

2012-06-25 Thread Elliot Joel Bernstein
I want to include this in the prepanel function is that I want to add conditioning and use the "combineLimits" function in the latticeExtra package.) Thanks. - Elliot [[alternative HTML version deleted]] __ R-help@r-project.org m

Re: [R] One main title and One legend for multiple lattice plots

2012-04-27 Thread Elliot
same scale within each row). Thanks. - Elliot -- View this message in context: http://r.789695.n4.nabble.com/One-main-title-and-One-legend-for-multiple-lattice-plots-tp1598894p4593320.html Sent from the R help mailing list archive at Nabble.com. _

[R] splom Tick Location

2011-05-31 Thread Elliot Joel Bernstein
diagonal panels Thanks. - Elliot [[alternative HTML version deleted]] __ R-help@r-project.org 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 c

[R] Errors and line numbers in scripts?

2011-05-12 Thread Elliot Joel Bernstein
more information about error locations. I don't know if it will handle this case (R doesn't get told the filename in case of input redirection, for example). Generally the goal is to report error lines during interactive use, batch use is assumed to already be debugged. Duncan Murd

Re: [R] Cumsum in Lattice Panel Function

2011-05-11 Thread Elliot Joel Bernstein
That worked perfectly. Thanks! - Elliot On Mon, May 09, 2011 at 12:20:36AM +0530, Deepayan Sarkar wrote: > On Fri, May 6, 2011 at 9:24 PM, Elliot Joel Bernstein > wrote: > > I'm trying to create an xyplot with a "groups" argument where the y-variable > > is t

[R] Cumsum in Lattice Panel Function

2011-05-06 Thread Elliot Joel Bernstein
nt the result to look the same as if I had done dat$cumvalue <- with(dat, unsplit(lapply(split(value, group), cumsum), group)) xyplot(cumvalue ~ date, data = dat, group = group, type = 'l', grid = TRUE) Thanks for your help. - Elliot Elliot Joel

Re: [R] Scaling Lattice Graphics for tikzDevice

2011-02-19 Thread Elliot Joel Bernstein
On Feb 18, 2011 11:02 PM, "Deepayan Sarkar" wrote: > > On Fri, Feb 18, 2011 at 11:04 PM, Elliot Joel Bernstein > wrote: > > I'm trying to use lattice graphics to produce some small plots for inclusion in a LaTeX file. I want the LaTeX fonts to be used in the plots,

[R] Scaling Lattice Graphics for tikzDevice

2011-02-18 Thread Elliot Joel Bernstein
par.settings = rescale.pars()) dev.off()

[R] Generic Functions and Dates

2011-01-31 Thread Elliot Joel Bernstein
x[sample(length(x), 5)] <- NA nan2last(x) Thanks. - Elliot ___

[R] Aligning Grid Lines with Date Ticks in Trellis Plot

2010-11-24 Thread Elliot Joel Bernstein
panel.xyplot(...) }) Thanks. - Elliot __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide h

[R] Multiple Line Plots with xyplot

2010-11-17 Thread Elliot Joel Bernstein
;l') will work, but if Y is large, this notation can get very awkward. Is there a way to do something simpler, along the lines of xyplot(Y ~ x, type='l') Thanks. - Elliot -- Elliot Joel Bernstein, Ph.D. | Research Associate | FDO Partners, LLC 134 Mount Auburn Street | Cambridg