> Dear friends,
>
> How do I stop partial matching of list names?
>
> e.g.,
>
> x <- list(="a", B="b")
> is.null(x$A) #returns FALSE even though there is no element A.
>
> if(is.null(x$A)) {result <- x$} else {result <- x$A}
> result #is even though there is no x$A e
On 07/05/2011 7:09 PM, William Revelle wrote:
Dear friends,
How do I stop partial matching of list names?
e.g.,
x<- list(="a", B="b")
is.null(x$A) #returns FALSE even though there is no element A.
if(is.null(x$A)) {result<- x$} else {result<- x$A}
result #is ev
On Sun, May 8, 2011 at 11:09 AM, William Revelle wrote:
> Dear friends,
>
> How do I stop partial matching of list names?
>
> e.g.,
>
> x <- list(="a", B="b")
> is.null(x$A) #returns FALSE even though there is no element A.
>
> if(is.null(x$A)) {result <- x$} else {result
Dear friends,
How do I stop partial matching of list names?
e.g.,
x <- list(="a", B="b")
is.null(x$A) #returns FALSE even though there is no element A.
if(is.null(x$A)) {result <- x$} else {result <- x$A}
result #is even though there is no x$A element
x <- list
4 matches
Mail list logo