Hoi TEMPL,
--On maandag 17 mei 2004 10:46 +0200 TEMPL Matthias <[EMAIL PROTECTED]> wrote:
Hello,
I would like to access my data frame without one variable.
E.g.:colnames(x)[1] "Besch" "Ang.m" "Arb.m" "i10" "Umsatz" "arbstd"
I can try x[,-1], but this variable must be called by itīs name.
x[,-"Besch"] x[,!"Besch"] attach(x) x[-Besch] ...
Try
x2 <- subset(x, select=-Besch)
kind regards, Paul
-- Paul Lemmens NICI, University of Nijmegen ASCII Ribbon Campaign /"\ Montessorilaan 3 (B.01.05) Against HTML Mail \ / NL-6525 HR Nijmegen X The Netherlands / \ Phonenumber +31-24-3612648 Fax +31-24-3616066
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html