I have a completed working script, however i would like to add additional rows to the script. Same error happens in colnames additions
adding the new ones & redirecting to fresh sheet
colnames(main)<-c("Company","Mapped","Not.Mapped","Pending")
rownames(main)<-c("CompA","CompB","CompC")
write.table(main, file="Main.csv", sep=",", row.names = FALSE)
Error in .rowNamesDF<-
(x, value = value) : invalid 'row.names' length
output should look like the below
Company Mapped Not.Mapped Pending X.Mapped
CompA 190 19 63 90.91%
CompB
CompC 66 9 36 88.00%```