[R] New to R

moulirc c.radhakrishnan at uq.edu.au
Tue Aug 28 02:45:27 CEST 2012


Hi,

I am new to R and using Rcmdr and like to automate and get into scripting...

I am using for evaluating two variables 

.Table <- xtabs(~CurSWI+BckMo, data=swanalysis_run1)
.Table
fisher.test(.Table)
remove(.Table)

the output for this will be ....
> .Table
      BckMo
CurSWI N/A No Yes
   N/A   1  0   0
   No    3 62  38
   Yes   2 23  24

> fisher.test(.Table)

	Fisher's Exact Test for Count Data

data:  .Table 
p-value = 0.02689
alternative hypothesis: two.sided
***************
What i would like to do is get an output in a excel or csv format with 

p.value and BckMo


(BckMo, 0.02689)

pls help me...thanks in advance..
cheers

Mouli






--
View this message in context: http://r.789695.n4.nabble.com/New-to-R-tp4641489.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list