Re: [R] Adding summary title to table

2012-09-04 Thread Patrick Connolly
> -Original Message- |> > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- |> > project.org] On Behalf Of Patrick Connolly |> > Sent: Tuesday, September 04, 2012 5:25 AM |> > To: David Arnold |> > Cc: r-help@r-project.org |> > Subject: Re: [R] Adding

Re: [R] Adding summary title to table

2012-09-04 Thread Rui Barradas
Hello, Ty the following. names(dimnames(x)) <- c("Academic Performance", "Nutritional Status") x Awkward names, by the way. Hope this helps, Rui Barradas Em 03-09-2012 23:25, David Arnold escreveu: All, I have: x <- matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE) rownames(x) <-

Re: [R] Adding summary title to table

2012-09-04 Thread David L Carlson
lto:r-help-bounces@r- > project.org] On Behalf Of Patrick Connolly > Sent: Tuesday, September 04, 2012 5:25 AM > To: David Arnold > Cc: r-help@r-project.org > Subject: Re: [R] Adding summary title to table > > On Mon, 03-Sep-2012 at 03:25PM -0700, David Arnold w

Re: [R] Adding summary title to table

2012-09-04 Thread Patrick Connolly
On Mon, 03-Sep-2012 at 03:25PM -0700, David Arnold wrote: |> All, |> |> I have: |> |> x <- matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE) |> rownames(x) <- c("Cold or flu","Headache","Backache"); |> colnames(x) <- c("Went to doctor","No response","Did |> nothing","Self-medicated") |>

[R] Adding summary title to table

2012-09-03 Thread David Arnold
All, I have: x <- matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE) rownames(x) <- c("Cold or flu","Headache","Backache"); colnames(x) <- c("Went to doctor","No response","Did nothing","Self-medicated") x <- t(x) print(x) 1. I'd like to add the title "Nutritional Status" above the colum