Can somebody help me in converting Gene name to Entrez in R. For example

Gene name: `ANKRD62P1-PARP4P3` has entrez: `23783`

like this page:

http://www.genecards.org/cgi-bin/carddisp.pl?gene=ANKRD62P1-PARP4P3&keywords=ANKRD62P1-PARP4P3

I tried biomaRt but it didn't have the gene (return to NA)!

I tried this:

    ensembl=useDataset("hsapiens_gene_ensembl",mart = useMart("ensembl"))
    
      data = "ANKRD62P1-PARP4P3"
      ans <- unique(getBM(attributes = c("hgnc_symbol", "entrezgene"),    
                          filters = "hgnc_symbol",
                          values = data,
                          mart = ensembl) )

Your help is really appreciated!
I'd just use org.Hs.eg.db if it's a mapping within EntrezGene that you're interested in.
    
    library(org.Hs.eg.db)
    hs <- org.Hs.eg.db
    my.symbols <- c("ANKRD62P1-PARP4P3")
    select(hs, 
           keys = my.symbols,
           columns = c("ENTREZID", "SYMBOL"),
           keytype = "SYMBOL")
    #              SYMBOL ENTREZID
    # 1 ANKRD62P1-PARP4P3    23783