bibliometrix icon indicating copy to clipboard operation
bibliometrix copied to clipboard

Error:duplicate 'row.names' are not allowed

Open BayanAhmad95 opened this issue 1 year ago • 2 comments

I gathered data from various sources, but it contained several inaccuracies. After validating and correcting the data, I saved it in the Bibliometrix format. However, when attempting to upload the file, I encountered an error. duplicate 'row.names' are not allowed image

BayanAhmad95 avatar Sep 07 '24 14:09 BayanAhmad95

Same issue but in an operation on R console with thematicEvolution. Any answer to this issue? Thanks in advance!

mancebral avatar Oct 03 '24 23:10 mancebral

Same issue but in an operation on R console with thematicEvolution. Any answer to this issue? Thanks in advance!

Operative System: Windows 10 R Version 4.4.1 Bibliometrix Version: 4.3.0

I have used the function convert2df firstly and after that mergeDbSources, and then gives me that error. I have also tried with mergeDbSources instead of bind_rows and also gives me an error.

Captura

Thanks!

mancebral avatar Oct 08 '24 18:10 mancebral

Encountered similar issue. I have several files downloaded from wos and combined the convert2df:

data<-lapply(file_paths, convert2df, dbsource = "wos", format = "plaintext") wos_data <- do.call(rbind, data)

biblioAnalysis(wos_data_final,sep = ";") works fine but when it comes to cocMatrix(wos_data, Field = "SO", sep = ";") it keeps showing the duplicated rownames error:

Error in .rowNamesDF<-(x, value = value) : duplicate 'row.names' are not allowed

strawberry07 avatar Feb 10 '25 04:02 strawberry07

Your code is not correct.

To import more than one file, you just need to pass a string with all the file names and paths to the convert2df function:

wos_data <- convert2df(file_paths, dbsource = "wos", format = "plaintext")

massimoaria avatar Feb 10 '25 10:02 massimoaria