I have a genetic dataset I need the data in the Genes column to replace the rownames (1,2,3,4 etc etc).
I cant use the rownames(dataset) <- dataset$Gene funciton as it throws up an error.
Does anyone know how to help?
Dataset
This is the error being thrown back at me:
Error in .rowNamesDF<-(x, value = value) :
duplicate ‘row.names’ are not allowed
In addition: Warning messages:
1: Setting row names on a tibble is deprecated.
2: non-unique values when setting ‘row.names’: ‘36951’, ‘37135’, ‘37316’, ‘5S’, ‘7SK’, ‘ACA59’, ‘ACA64’, ‘ACE’, ‘ALG9’, ‘ANKRD18A’, ‘AQP1’, ‘CCDC177’, ‘CDRT1’, ‘CEBPA-AS1’, ‘CELF6’, ‘CFB’, ‘CHTF8’, ‘CKS1B’, ‘CLN3’, ‘CPEB3’, ‘CRIP1’, ‘CRYBG3’, ‘CTAGE15’, ‘DCAF8’, ‘DEFB130’, ‘DHRS4-AS1’, ‘EFNA3’, ‘FAM47E-STBD1’, ‘GALT’, ‘GATS’, ‘GOLGA7B’, ‘HOXC4’, ‘hsa-mir-3180-3’, ‘IDS’, ‘IER3IP1’, ‘ITFG3’, ‘ITGB3’, ‘JAG1’, ‘KBTBD4’, ‘KIAA0391’, ‘KLK9’, ‘KMT2B’, ‘KRBOX1’, ‘KRT222’, ‘LCN6’, ‘LIMS3’, ‘LSP1’, ‘LTB4R2’, ‘MDGA2’, ‘Metazoa’, ‘MFRP’, ‘MIR1587’, ‘MIR3179-3’, ‘MIR3615’, ‘MIR3916’, ‘MIR4461’, ‘MIR4519’, ‘MIR4523’, ‘MRPL30’, ‘MRPS17’, ‘MUC3A’, ‘NAA60’, ‘NDUFA7’, ‘NDUFB8’, ‘NPIPA7’, ‘OC90’, ‘OR52E1’, ‘OR5AL1’, ‘PAGR1’, ‘PDXDC2P [… truncated]
Mimi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.