[R] names of data.frame variables?

From: Martin Kaffanke <technik_at_roomandspace.com>
Date: Mon, 03 Mar 2008 10:56:09 +0000

Hi there!

I'd like to make many tests and plots, for each variables.


i <- 1
repeat {

   print (t.test(e[i], f[i]))
   i <- i + 1
   if (i == 21) break

but the output is:

        Welch Two Sample t-test

data: e[i] and f[i]

so I don't know which data was calculated.

Is there a way to tell the t.test or I'll make the same with plotmeans (from the gplots library) but I'd like to have it like

t.text(e$angststoer, f$angststoer)

so I know what was calculated or plotted...

Any ideas?


Ihr Partner für Webdesign, Webapplikationen und Webspace.
Martin Kaffanke +43 650 4514224

______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Received on Mon 03 Mar 2008 - 10:59:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Mar 2008 - 12:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive