[R] pivoting - summing up factors

2008-05-07 Thread juanita choo
Hi
I would like to know how to pivot a table that will sum the number of plants
(a or b) for each location (x,y,z)
I have read on the listserve similar questions but which involve summing up
numbers rather than factors.  I have also read about the R package reshape
on the listserve but wanted to know if there's a way to do it easily without
the package
Thanks for the help!

location  plant
 x a
 x b
 x b
 y b
 y b
 y a
 z a
 z a

into a table like this


   xy   z
a 11   2
b 22   0

[[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] miniscule font size on R console output

2008-05-08 Thread juanita choo
Hi,

I am having a situation where I cannot change the output size of the R
console. I have played around with the font format menu but  the changes are
only reflected to the script that I type in but not to the output. Everytime
I run a script, I have to go back to font format to increase the output
script, which is currently showing up as small as the dust on my computer
screen. I have mac by the way.
Thanks for your suggestions.

juanita

[[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] Point patterns and igraph

2009-09-08 Thread juanita choo
Hi,

I have a data set consisting of the x and y coordinate locations of 1600
points. I would like to generate a graph using the functions in igraph.
However the graph making functions in igraph requires the data to be in the
form of an adjacency matrix. I'd like some advice on how to convert my point
pattern to an adjacency matrix or functions out there that would do it
directly. I've only gotten as far as obtaining the distance matrix using
dist(). Thanks for the help.

Best,
Juanita

-- 
Juanita Choo
Graduate Student
Section of Integrative Biology
University of Texas at Austin
1 University Station Stop
TX 78712
+1 512 471 5773



-- 
Juanita Choo
Graduate Student
Section of Integrative Biology
University of Texas at Austin
1 University Station Stop
TX 78712
+1 512 471 5773

[[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.