


	
	
	
	
	
	

I've a table containing two columns
seperated by space, as shown below.
S:C 2.011085038928

S:A 21.496800549900762

S:J 0.183181039138149

P:E 9.641984304606304




I'm reading this table inside a loop 
but unable to access the first column as file[i,1].
   

file <-
read.table("data.txt",header=FALSE)

for ( i in 1:nrow(file))
{

 cat(file[i,1],":")

 pvalue <-
2*(1-pnorm(abs(file[i,2])))

 cat(pvalue,"\n")

}




can anyone help  me how to read the
first column.



regards


Gaurav Kumar
www.gauravkumar.org

PhD Student, Chemistry and Biomolecular Sciences, Macquarie , Sydney, Australia.
MS (Computational Biology), NCBS-TIFR, Bangalore, India.


	[[alternative HTML version deleted]]

