Displaying 20 results from an estimated 416 matches for "pairlist".
2016 Oct 12
2
How to assign NULL value to pairlist element while keeping it a pairlist?
Hi Henrik,
It would help to understand your use case for pairlists.
Thanks,
Michael
On Wed, Oct 12, 2016 at 9:40 AM, Michael Lawrence <michafla at gene.com> wrote:
> The coercion is probably the most viable workaround for now, as it's
> consistent with what happens internally for calls. All pairlists/calls
> are converted to list for subassig...
2016 Oct 12
2
How to assign NULL value to pairlist element while keeping it a pairlist?
Hi, I seem to not be able to assign NULL to an element of a pairlist
without causing it to be coerced to a plain list. For example:
> x <- pairlist(1, 2)
> class(x)
[1] "pairlist"
> x[1] <- list(NULL)
> class(x)
[1] "list"
This actually true for all [()<- assignments regardless of list value, e.g.
> x <- pairlist(1...
2007 Oct 02
2
pairlist objects
Hi,
?pairlist gives no explanation about what exactly is the difference
between a pairlist and a list (except that a pairlist of length 0
is 'NULL'). So, what's a pairlist?
class(.Options)
[1] "pairlist"
Some strange things about the "pairlist" type:
> showClass("pair...
2016 Oct 12
2
How to assign NULL value to pairlist element while keeping it a pairlist?
Thanks, this was what I expected. There is a desire to eliminate the
usage of pairlist from user code, which suggests the alternative of
allowing for function arguments to be stored in lists. That's a much
deeper change though.
On Wed, Oct 12, 2016 at 12:31 PM, Henrik Bengtsson
<henrik.bengtsson at gmail.com> wrote:
> Michael, thanks for this info.
>
> I've st...
2016 Oct 19
2
How to assign NULL value to pairlist element while keeping it a pairlist?
...chler at stat.math.ethz.ch> wrote:
>>>>>> Michael Lawrence <lawrence.michael at gene.com>
>>>>>> on Wed, 12 Oct 2016 15:21:13 -0700 writes:
>
> > Thanks, this was what I expected. There is a desire to
> > eliminate the usage of pairlist from user code, which
> > suggests the alternative of allowing for function
> > arguments to be stored in lists. That's a much deeper
> > change though.
>
> and I hope we would not go there just for the purpose of
> eliminating pairlists from user code, wo...
2016 Oct 12
0
How to assign NULL value to pairlist element while keeping it a pairlist?
Michael, thanks for this info.
I've stumbled upon this in a case where I walk an R expression (the
AST) and (optionally) modifies it (part of the globals package). In R
expressions, a function definition uses a pairlist to represent the
arguments. For example,
> expr <- quote(function(x = 1) x)
> str(as.list(expr))
List of 4
$ : symbol function
$ :Dotted pair list of 1
..$ x: num 1
$ : symbol x
$ :Class 'srcref' atomic [1:8] 1 15 1 29 15 29 1 1
.. ..- attr(*, "srcfile")=Classes...
2016 Oct 15
0
How to assign NULL value to pairlist element while keeping it a pairlist?
>>>>> Michael Lawrence <lawrence.michael at gene.com>
>>>>> on Wed, 12 Oct 2016 15:21:13 -0700 writes:
> Thanks, this was what I expected. There is a desire to
> eliminate the usage of pairlist from user code, which
> suggests the alternative of allowing for function
> arguments to be stored in lists. That's a much deeper
> change though.
and I hope we would not go there just for the purpose of
eliminating pairlists from user code, would we ?
As nobody else has...
2016 Oct 19
0
How to assign NULL value to pairlist element while keeping it a pairlist?
....ethz.ch> wrote:
>>>>>>> Michael Lawrence <lawrence.michael at gene.com>
>>>>>>> on Wed, 12 Oct 2016 15:21:13 -0700 writes:
>>
>> > Thanks, this was what I expected. There is a desire to
>> > eliminate the usage of pairlist from user code, which
>> > suggests the alternative of allowing for function
>> > arguments to be stored in lists. That's a much deeper
>> > change though.
>>
>> and I hope we would not go there just for the purpose of
>> eliminating pairlis...
2016 Oct 12
0
How to assign NULL value to pairlist element while keeping it a pairlist?
The coercion is probably the most viable workaround for now, as it's
consistent with what happens internally for calls. All pairlists/calls
are converted to list for subassignment, but only calls are converted
back. My guess is that the intent was for users to move from using a
pairlist to the "new" (almost 20 years ago) list. In my opinion,
consistency trumps "convenience" in this case. If others agree, I...
2006 Jul 07
2
adding [markdown] to the email subject lines for markdown-discuss
Hi All,
I was wondering what people thought to the idea of getting "[markdown]"
added to the subject lines of all the mails to the markdown mailing list?
It would certainly help me out with my email organisation.
Many thanks
CHEERS> SAM
2018 Mar 28
1
as.pairlist does not convert call objects
Dear all,
It seems that as.pairlist does not convert call objects, producing
results like the following:
> is.pairlist(as.pairlist(quote(x + y)))
[1] FALSE
Should this behavior be expected?
Thanks,
Jialin
> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-suse-linux-gnu (64-bit)
Running under: openSUSE Tumblewee...
2011 Apr 14
1
Possible bug in 'relist()' and/or 'as.relistable()'
Dear list,
I think I just stumbled across a bug in either 'relist()' and/or
'as.relistable()'. It seems that 'pairlists' can only be un- and relisted as
long as they're not nested:
Good:
a <- as.relistable(as.pairlist(list(a=1, b=2)))
a <- unlist(a)
relist(a)# Works
Bad:
a <- as.relistable(as.pairlist(list(a=1, b=2, c=list(c.1=1, c.2=2))))
a <- unlist(a)
relist(a)
The help page didn't say...
2005 Oct 14
1
question about ?list
the help page says:
'is.list' returns 'TRUE' iff its argument is a 'list' _or_ a
'pairlist' of 'length' > 0, whereas 'is.pairlist' only returns
'TRUE' in the latter case.
does the "latter case" mean a 'pairlist' of 'length' > 0?
but
> is.pairlist(pairlist())
[1] TRUE
> length(pairlist())
[1] 0
what the help page...
2003 Feb 14
1
pairlists (was: data manipulation function descriptions)
> -----Original Message-----
> From: Luke Tierney [mailto:luke at stat.uiowa.edu]
> R does not provide a pairlist data structure. This creates a dilemma
> when translating some list-based xlispstat code, or, more
> importantly, when implementing an algorithm for which parilists are
> the natural data structure to use.
> ...
> Pairlists were and still are used internally for many things.
> .....
2006 Aug 29
1
list and pairlist in "Writing R Extensions" (PR#9185)
Full_Name: Glen Herrmannsfeldt
Version: 2.2.1
OS: Linux
Submission from: (NULL) (128.95.113.77)
Following the discussion in "Writing R Extensions" in section 5.8.2, there
is no indication that showArgs expects a pairlist() instead of a list().
I was trying
.Call("showArgs",list(one=1,two=2,three=3))
for example, and getting many core dumps.
It wasn't until reading "R Language Definition" that I found out
about pairlist(), as needed.
The final example:
showArgs<-function(...) .Cal...
2013 Jul 05
1
fan_fucking_tastic
...PM, "bowerbird" <bowerbird at aol.com> wrote:
> fan_fucking_tastic.
>
> somebody hit another one of the dead skunks on this road.
>
> -bowerbird
>
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss at six.pairlist.net
> http://six.pairlist.net/mailman/listinfo/markdown-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20130705/af3ae82f/attachment.html>
2013 Jul 01
6
attribute blocks for definition lists
...lementation
supporting definition lists.
the syntax would be
term {#id}
: definition
This syntax tries to follows current convention and use the similarity
between titles and terms.
Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20130701/4d92e28c/attachment.html>
2012 Jul 26
3
rep fails on pairlist
This code which has worked for years in R but fails under R-devel:
> R.version.string
[1] "R Under development (unstable) (2012-07-25 r59963)"
>
> n <- 3
> f <- function(x) {}
> formals(f) <- rep(formals(f), n) ##
Error in rep(formals(f), n) : replication of pairlists is defunct
The message suggests that the change was intentional.
Why was this functionality removed?
What code should be used in its place?
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
2009 Mar 20
2
struggling with pairlists
I would like to create a vector of pairlist (flag, binary_value) like:
(variable ="TrendOff", value = 0)
(variable ="MOdwt", value = 1)
(variable ? "ZeroPadding", value =1)
................................................
I tried the following syntax but the emcompassing list (that I called &...
2005 Mar 16
1
working with pairlists imported from HDF5, converting to data frames?
...ct: SMD ...... its a dataset......Finished dataset
... Done group effective
Each item inside the group "effective" is a vector of numbers. I want
to convert effective into a data frame or matrix for use with matplot.
However, R sees effective not as a collection of vectors, but as a
pairlist. I'm not a Lisp programmer, so don't understand the
significance of the list help page's comment about dotted lists.
> class(effective)
[1] "pairlist"
> attributes(effective)
$names
[1] "SMD" "PR" "CPR" "AggNo...