elety "NA" produces NA in pdb$atom$elety

Issue #110 resolved
Lars Skjærven created an issue
pdb = read.pdb("1c75")
any(is.na(pdb$atom$elety))
[1] TRUE

Comments (4)

  1. Xinqiu Yao

    Fixed by using empty string "" instead of "NA" as NA values. Temporarily checked with 1c75 example and it was correct:

     > pdb = read.pdb("1C75")
      Note: Accessing on-line PDB file
      HEADER    ELECTRON TRANSPORT                      09-FEB-00   1C75               
       PDB has ALT records, taking A only, rm.alt=TRUE
    > any(is.na(pdb$atom$elety))
    [1] FALSE
    
  2. Log in to comment