[R] how to extract row col names from a matrix

2005-12-06 Thread shanmuha boopathy
Dear all,
  I like to extract row names  column names from the named matrix..
   
  like..
   
   a-matrix(1:6,2)
 ro-c(aa,bb)
 co-c(dd,ee,ff)
 dimnames(a)-list(ro,co)
a
  
 
dd ee ff
aa  1  3  5
bb  2  4  6
   
  from the above matrix a
  I like to extract
  rownames separately like rownames(a)= (aa,bb)
column names separately like col names(a)= (dd,ee,ff)
   
  Kindly suggest me some good ways...

  tha´nk you all
   
  with regards,
  boopathy.




Thirumalai Shanmuha Boopathy, 
Zimmer no : 1109,
Rütscher strasse 165, 
52072  Aachen . 
Germany.
 
Home zone   :  0049 - 241 - 9813409
Mobile zone :  0049 - 176 - 23567867






-

 Single? There's someone we'd like you to meet.

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] how to get or store the intermediate v?lues while running a function

2005-12-06 Thread shanmuha boopathy
Dear all,
   
  While running a function I´m getting only the final output of the function.
  Bit if I like to store or recover some values that are intermediate in  the 
function calculations which command I have to use for storing those values.
   
  hope u understand.
   
  for eg
   
  a-function(a,b,c,d)
  {
  k=a+b
  l=c+d
  m=k+l
  }
   
  in this example the function will return only the value of m
  ...But I like to extract the values of l  k also.
  which command to use for storing or for extracting those intermediate 
value...
   
  thank you all.
   
  with regards,
  boopathy.


Thirumalai Shanmuha Boopathy, 
Zimmer no : 1109,
Rütscher strasse 165, 
52072  Aachen . 
Germany.
 
Home zone   :  0049 - 241 - 9813409
Mobile zone :  0049 - 176 - 23567867






-


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] how to plot the circles in matrix form

2005-11-08 Thread shanmuha boopathy
Could you help me 
to plot the circles in the form of matrix like
 
O  O  O  O
O  O  O  O
O  O  O  O

thank you..
 
with regards,
boopathy.


Thirumalai Shanmuha Boopathy, 
Zimmer no : 07-15,
Rütscher strasse 165, 
52072  Aachen . 
Germany.
 
Home zone   :  0049 - 241 - 9813409
Mobile zone :  0049 - 176 - 23567867





-

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] R graphics help

2005-11-04 Thread shanmuha boopathy
Halo friends,
 
I have a problem to solve in R graphics..
I have a matrix like 
 
A=   2 3 4
   5 6 7
   8 9 4
 
and I like to generate the same matrix in terms of shaded circles in which the 
density of shading depends on the value...
 
 for eg in the above matrix A the value 2 is a circle shaded very lightly
   9 is of full dark 
circle(almost black)
 
so when the value increses then the darkness also increases..
 
Please help me in giving your suggestions..
 
with regards,
boopathy.


Thirumalai Shanmuha Boopathy, 
Zimmer no : 07-15,
Rütscher strasse 165, 
52072  Aachen . 
Germany.
 
Home zone   :  0049 - 241 - 9813409
Mobile zone :  0049 - 176 - 23567867





-

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] how to extract the column name or value from the numerical value of the matrix

2005-09-19 Thread shanmuha boopathy
Dear sir,
 i have a matrix like
 x-c(1:20)
A-matrix(x,4,5)
 A
 [,1] [,2] [,3] [,4] [,5]
[1,]159   13   17
[2,]26   10   14   18
[3,]37   11   15   19
[4,]48   12   16   20

I want to extract the column value for the matrix
value 11...

or the row value for 14..
how it is possible?

thanks for your help

with regards,
boopathy.

Thirumalai Shanmuha Boopathy, 
Zimmer no : 07-15,
Rütscher strasse 165, 
52072  Aachen . 
Germany.
 
Home zone   :  0049 - 241 - 9813409
Mobile zone :  0049 - 176 - 23567867

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html