[R] Odp: computing and showing mean
petr.pikal at precheza.cz
Wed Jun 11 11:54:25 CEST 2008
r-help-bounces at r-project.org napsal dne 11.06.2008 08:41:27:
> Hello to everyone,
> I am trying to compute a mean and show it to the screen and then save to
later be used
> as a boxplot.I have used the following code:
> dat<-read.table(file="C:\\Documents and Settings\\Owner\\My
here you get data frame
> file.show(file="C:\\Documents and Settings\\Owner\\My
x is data frame consisting from row 2 and columns 23:46 of data frame dat
y is named vector numerically the same as x (you compute mean of one
if you want to see how your objects look like just print them on your
console by simply typing
x or y.
If you want to see internal structure do
str(x) or str(y)
> Am I computing the mean correctly and how to I show the value of the
mean to the screen?
Maybe its time to have a small glimpse into some basic documentation like
I may guess you want mean of columns 25:46. If this is true, then
prints means for defined columns.
gives you boxplots for each column.
But enough of speculation what do you really want.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help