Re: [R] Row names and matrixs

2011-05-15 Thread nielsen4897
Thank you - it is refreshing to have a helpful answer. I am glad some people remember the days when they were first learning too. On Thu, May 12, 2011 at 4:58 PM, jlemaitre [via R] < ml-node+3518836-766936252-236...@n4.nabble.com> wrote: > Nielsen, > The numbers in the brackets reference a com

Re: [R] Row names and matrixs

2011-05-12 Thread jlemaitre
Nielsen, The numbers in the brackets reference a component of a matrix/data frame/vector. So if you have: > x <- c(1:10) # a vector of integers in sequence from 1-10 > x[3] # the third component of x [1] 3 For 2-way matrices or data frames, the formatting is [row,column]. So, for a 10 x 10 matrix

Re: [R] Row names and matrixs

2011-05-11 Thread Bert Gunter
Dear Anonymous/Lindsey Nielsen(?): While it would not be hard to answer your questions, given your admitted lack of programming or R experience, approaching your ignorance piecemeal in this fashion does not seem to be a sensible way to learn either. Instead, please start by reading the "Introducti

[R] Row names and matrixs

2011-05-11 Thread nielsen4897
Hi all - I am NEW to R and NEW to any type of programming. I am making heatmaps using the heatmap.2 function within gplots package. At present, when the heatmap is plotted it uses the row identifiers as 1,2,3,4...etc. However, I much rather use my own labels. I was told my another well-versed