Skip to content
Back to formatted view

Raw Message

Message-ID: <48DB9593.14294.D26962@fritsch.bips.uni-bremen.de>
Date: 2008-09-25T11:43:48Z
From: Stefan Fritsch
Subject: Exclusion of elements in a vector

Dear R Users,

I want to exclude elements in a vector by:

vector[-exclude]

is it intended to cause an error if no elements are excluded?

> vector <- 1:10
> exclude <- NULL
> vector[-exclude]
Error in -exclude 

or am I just definig exclude wrong, if no elements should be excluded?

with kind regards,

Stefan Fritsch