Displaying 20 results from an estimated 6000 matches similar to: "Ellipsis arguments for plot.formula"
2009 Aug 28
1
names<- in data.frame (PR#13916)
Full_Name: Spinu Vitalie
Version: 2.9.0
OS: Windows
Submission from: (NULL) (130.115.113.15)
In assignment of "zero length" names to data.frame:
> tdf <- data.frame(rbind(c(1, 2), c(1, 2)))
> names(tdf) <- c("", "")
> tdf
structure(c("1", "1"), class = "AsIs") structure(c("2", "2"), class =
2003 May 30
2
Rsyncing Problem with - character!
Dear Rsync Users,
Please can I have a bit of rsync advice?
I am trying to rsync a file called.
'Draft text - with Holley comments.doc' from machine a to machine b.
Unfortunately this isn't working because I think rsync recognises the -
character and thinks it's an option.
I have tried escaping this out as well as putting it all in " " but
neither seems to work
2003 Feb 28
1
Newbie Question
Hi,
This is a very simple question I realise, but I hope maybe someone can just
help me out.
I am trying to do a very simple thing, just transfer a file from machine A
to machine B using rsync with ssh.
This is what i'm typing:
bash-2.03# rsync -avvv --rsh="ssh -l tdf"
tdf@machine.niss.ac.uk:/export/home/tdf/demofile.html demofile.html
This is what I get:
opening connection
2008 Jun 26
1
Undefined method: camelize
Hi,
I am fairly new at Rails, and attempting to deploy an application
that''s running fine using InstantRails on my PC. On the deployment
server (I use railsplayground.net), I get the following error:
Processing ApplicationController#index (for 220.224.229.156 at
2008-06-25 18:49:34) [GET]
Session ID: 5921e7d789ee3aaa214f2d59aa40986a
Parameters: {"action"=>:index,
2010 Sep 23
1
merging multiple data frames
hi guys
i have multiple data frames which i want to merge.
there are four of them..eg
pdf
SampleID UVDose_J RepairHours Day_0 Day_45 Day_90
1 SDM001 1.0 3 485.612 465.142 490.873
2 SDM001 1.0 3 503.658 457.863 487.783
3 SDM001 1.0 2 533.193 451.044 456.973
4 SDM001 1.0 2 538.334 452.887 474.915
5 SDM001 1.0
2005 Nov 21
1
Cacheing in read.table/ attached data?
Disclaimer/Apology: I am an R newbie
I am seeing some behaviour that seems to me to be the result of some
cacheing going on at some level, and perhaps this is expected behaviour. I
would just like to understand the basic rules.
What I have is a file with some data. I read it in and then do a summary on
the resulting dataframe. I find the some values are completely outside the
expected range,
2018 Aug 13
0
substitute() on arguments in ellipsis ("dot dot dot")?
Thanks all, this was very helpful. Peter's finding - dots2() below -
is indeed interesting - I'd be curious to learn what goes on there.
The different alternatives perform approximately the same;
dots1 <- function(...) as.list(substitute(list(...)))[-1L]
dots2 <- function(...) as.list(substitute(...()))
dots3 <- function(...) match.call(expand.dots = FALSE)[["..."]]
2018 Aug 12
3
substitute() on arguments in ellipsis ("dot dot dot")?
Hi. For any number of *known* arguments, we can do:
one <- function(a) list(a = substitute(a))
two <- function(a, b) list(a = substitute(a), b = substitute(b))
and so on. But how do I achieve the same when I have:
dots <- function(...) list(???)
I want to implement this such that I can do:
> exprs <- dots(1+2)
> str(exprs)
List of 1
$ : language 1 + 2
as well as:
>
2008 Aug 30
1
need some help on r
Hi
>Tdf
bin TCC_TCA TCA_CR TCC_CR Time sn.rnc
117 117 258 27 314 (08/28/08 00:09:42) 50.21
118 118 251 30 291 (08/28/08 00:09:47) 50.21
119 119 247 28 289 (08/28/08 00:09:52) 50.21
120 120 251 29 282 (08/28/08 00:09:57) 50.21
121 121 276 39 320 (08/28/08 00:10:02) 50.21
122
2002 Mar 26
1
ellipsis question
Hello R experten
I have just written a little function to calculate all pairwise
combinations of two vector arguments:
> pair(c(1,2,3),c(7,8))
[,1] [,2]
[1,] 1 7
[2,] 1 8
[3,] 2 7
[4,] 2 8
[5,] 3 7
[6,] 3 8
>
I want to generalize this to any number of arguments, for example,
<fantasy>
> ntuple(c(1,2,3),c(7,8),c(14,15))
[,1] [,2]
2018 Aug 13
2
substitute() on arguments in ellipsis ("dot dot dot")?
Interestingly,
as.list(substitute(...()))
also works.
On Sun, Aug 12, 2018 at 1:16 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 12/08/2018 4:00 PM, Henrik Bengtsson wrote:
>>
>> Hi. For any number of *known* arguments, we can do:
>>
>> one <- function(a) list(a = substitute(a))
>> two <- function(a, b) list(a = substitute(a), b =
2018 Aug 13
1
substitute() on arguments in ellipsis ("dot dot dot")?
Since you're already using bang-bang ;)
library(rlang)
dots1 <- function(...) as.list(substitute(list(...)))[-1L]
dots2 <- function(...) as.list(substitute(...()))
dots3 <- function(...) match.call(expand.dots = FALSE)[["..."]]
dots4 <- function(...) exprs(...)
bench::mark(
dots1(1+2, "a", rnorm(3), stop("bang!")),
dots2(1+2, "a",
2011 Feb 09
1
Adding labels into lattice's barchart
*** APOLOGIZES FOR THOSE READING THE LIST THROUGH NABBLE THIS WAS ALREADY POSTED THERE BUT NOT FORWARDED TO THE LIST FOR SOME UNKNOWN REASON ***
I have a dataset that looks like:
$ V1: factor with 4 levels
$ V2: factor with 4 levels
$ V3: factor with 2 levels
$ V4: num (summing up to 100 within V3 levels)
$ V5: num (nr of cases for each unique combination of V1*V2*V3 levels)
Quite new to
2006 Oct 06
1
sparklines in lattice
Dear R-help,
Has anyone implemented sparklines in the strips of a lattice plot? What I have in mind is, say, highlighting that part of a time series that one is examining in more detail in a set of lattice plots.
Regads,.
Mark Difford.
PS: (Andreas Loffler has implemented a simple but functional version for
TeX/LaTeX:
http://www.tug.org/tex-archive/help/Catalogue/entries/sparklines.html)
2011 Nov 22
1
glht for lme object with significant interaction term
Dear all,
I'm working on some data from an experiment on the breeding behavior of
birds. In short, I have been measuring how the time spent on performing a
certain task (variable 'mean_on_active') differs over time (variable 'day',
2 levels) across three experimental categories (variable 'treat'; levels
'C', 'R', 'E'). The model shows a
2006 Jan 23
3
ordering a data frame to same order as a chr vector
Hi all,
I've got a data frame that has an identical column to a chr vector. I would
like to use the chr vector to order the rows of the data frame to be
identical to the order in the chr vector (the contents of the chr vector are
completely identical to one col of the data frame), but this is proving
trickier than it sounds..
Any help would be much obliged,
-Ken
2007 Oct 24
5
How can I hide a DIV with a success message inside?
I want to have something like Facebook has. In some cases when you
post something a success message shows up (on the same page, not a pop-
up), stays 2-3 seconds and then fades away.
How can I do that with Prototype?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
2007 Jan 24
1
how to properly extend s3 data.frames with s4 classes?
Dear R Programmers!
After some time of using R I decided to work through John Chambers book
"Programming with Data" to learn what these S4 classes are all about and
how they work in R. (I regret not having picked up this rather fine book
earlier!)
I know from the documentation and the mailing archives that S4 in R is
not 100% the book and that there are issues especially with
2007 Mar 20
1
Symbol and Ellipsis problems
Hi Everyone,
When I have a load of functions which have various arguments passed
via the ellipsis argument it keeps on assigning them as symbol making
them unusable to the function. My current work around involves using
do.call but this is rather cumbersome.
Does anyone know why it suddenly changes the types to symbol and if
there is a way to get the actual data pointed to by the symbol? (I
2009 May 04
1
ellipsis problem
Hi,
I'm confused about the use of ellipsis in function arguments. I'm trying
to write a wrapper for plot to automate the combination of plot() and
points() calls for a data.frame. Some arguments seem to get passed
through to the inner plot, while others cause an error:
Error in eval(expr, envir, enclos) :
..1 used in an incorrect context, no ... to look in
As a minimal example:
tmp