Hi,
I have been trying to find a solution to this issue, but have not been able
to so !
I am trying to use sapply on the function getSYMBOL,
an extract from the list is:
> test.goP[13:14]
$`GO:0000050`
      IEA       IEA       IEA       IEA       TAS       TAS       TAS
IEA
"5270753" "5720725" "1690128" "4850681"  "110433" "2640544" "4900370"
"1430280"
      IEA       NAS       TAS       IEA
"6110044" "1170615" "6590546" "1690632"

$`GO:0000052`
[1] NA

goG=sapply(test.goP,getSYMBOL,data="hgu95av2")
error: "Error in .checkKeysAreWellFormed(keys) :
  keys must be supplied in a character vector with no NAs "
In this the 14th element has missing values, thus getSYMBOL raises issues.

GetSYMBOL has to be given a char array, so a simple solution is infact to
delete the missing elements from the list.

I have been trying to find a solution for it, but in vain:
tried: completecases(goP), na.omit(goP) and several other things.

Any suggestions please ?
Thanks a lot !

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

Reply via email to