title: write result in to a file, R
body: <p>From my analysis my resultant object have this structure</p>
  
  <pre><code>&gt; str(result)
  List of 2
   $ HP:0000002:Formal class 'HPOTerms' [package "HPO.db"] with 4 slots
    .. ..@ HP       : chr "HP:0000002"
    .. ..@ Term     : chr "Abnormality of body height"
    .. ..@ Synonym  : chr(0) 
    .. ..@ Secondary: chr(0) 
   $ HP:0000012:Formal class 'HPOTerms' [package "HPO.db"] with 4 slots
    .. ..@ HP       : chr "HP:0000012"
    .. ..@ Term     : chr "Urinary urgency"
    .. ..@ Synonym  : chr [1:2] "\"Overactive bladder syndrome\" RELATED []" "\"Urgency frequency syndrome\" RELATED []"
    .. ..@ Secondary: chr(0) 
  </code></pre>
  
  <p>How can I write this into a file? or convert into a data frame? Some how I manged it with the following clue: </p>
  
  <pre><code>bb&lt;-result[[1]]
  wh&lt;-list(bb@HP, bb@Term,bb@Synonym)
  write.table(as.data.frame(wh), "result.txt", sep="\t")
  </code></pre>
  
  <p>But I am looking for a better solution. Is there any built in function for this? Why I can't write it directly to a file? And what is mean by "@" sign?</p>
  
  <p>thanks.</p>