title: convert Ensembl ID to gene name using biomaRt
body: <p>I have a dataset called <code>kidney_ensembl</code> and I need to convert Ensembl IDs to gene names.</p>
  
  <p>I'm trying the code below, but it's not working. Can somebody help me? </p>
  
  <p>I know there are similar questions, but they are not helping me. Many thanks!</p>
  
  <p><a href="https://stackoverflow.com/questions/52087401/converting-from-ensembl-gene-ids-to-different-identifier">converting from Ensembl gene ID&#39;s to different identifier</a></p>
  
  <p><a href="https://stackoverflow.com/questions/28543517/how-can-i-convert-ensembl-id-to-gene-symbol-in-r">How can I convert Ensembl ID to gene symbol in R?</a></p>
  
  <pre><code>library(tidyverse)
  kidney &lt;- data.frame(gene_id = c("ENSG00000000003.10","ENSG00000000005.5",
  "ENSG00000000419.8","ENSG00000000457.9","ENSG00000000460.12")
  )
  #kidney &lt;- read_delim("Desktop/kidney_ensembl.txt", delim = "\t")
  
  if (!requireNamespace("BiocManager", quietly = TRUE))
      install.packages("BiocManager")
  
  library("biomaRt")
  
  mart &lt;- useDataset("hsapiens_gene_ensembl", useMart("ensembl"))
  genes &lt;-  kidney$gene_id
  gene_IDs &lt;- getBM(filters= "ensembl_gene_id", attributes= c("ensembl_gene_id","hgnc_symbol"),
                values = genes, mart= mart)
  
  kidney_final &lt;- left_join(kidney, gene_IDs, by = NULL)
  </code></pre>