[R] matrix for diversity functions?

2008-11-18 Thread Sharma, Manju
Hi, 
 
I have a small simple data frame (attached) -  to compare diversity of
insects encountered in disturbed and unditurbed site.  What i have is
the count of insects -  the total number of times they were encountered
over 30 monitoring slots.
 
Can someone please check for me to make sure how the 'community data
matrix' for the diversity function needs to be oriented so that i'm
comparing the right sets.
 
I know that community data matrices mustn't carry characters that aren't
numbers. I replaced my sps. names sp1, sp2, sp3, etc., with just 1, 2,
3 but not sure what I can replace 'dist' and 'undist' with! 
 
I try this to start with -- 
insects.div<-diversity(insects, index="shannon")  
> insects.div
[1] 0.7242788 0.7485246 0.7298712 0.9012085 1.0366280 0.9470281
1.0466542
[8] 1.0133127 0.6450332
 
& thats not what i want. Any advice on the matrix format or commands
would be big help! 
 
Cheers,
 
 
 
 
Manju V. Sharma
Gardenwood East 3.1, Division of Biology, 
Imperial College London, Silwood Park Campus
Ascot SL5 7PY
UK
Tel (O): 0044 207 5942360
  (R): 0044 207 8520808 
habitat distundist
1   56  73
2   86  75
3   0   33
4   0   21
5   0   4
6   20  29
7   13  16
8   24  18
9   0   17
__
R-help@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.


[R] MDS

2008-03-23 Thread Sharma, Manju
hello
what is the function for multidimensional scaling in R?
 
cheers
manju
 

[[alternative HTML version deleted]]

__
R-help@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.


[R] interperting a regression tree

2008-03-20 Thread Sharma, Manju
hello
i am trying to decipher a dendrogram i have from performing a 'tree'. (attached 
file) 
my response variable is factored - low, medium and high threat and the 8 
explanatory variables are numeric values. 
 
i could do with some help to understand what the values <0.25, <0.5 and <0.75 
are on the tree branches? how does one interpret this??? 
 
cheers,
mann
 
 
 
Manju Sharma
Ashoka Trust for Research in Ecology and the Environment,
Banaglore, India
  
__
R-help@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.