I have a data frame with numbers in the columns and those numbers are decimals. I want to remove the decimals and ant whole numbers in the columns.
my data frame expsrs looks like this
ENSG00000226823.1 15 14.4947 22.5606 13.5819 5.09327 16.8503
ENSG00000266470.1 0 0 0 0 0 0
ENSG00000229435.2 0 0 0 0 0 0
ENSG00000277456.1 0 0 0 0 0 0
ENSG00000236077.2 0 0 0 0 0 0
ENSG00000280518.1 0 57.9833 30.4089 23.0059 4.85613 0
I have tried this code but it removes the decimals but changes the value also.
exprs$V1<-round(as.numeric(exprs$V1), 0)
I want to remove decimals from all the columns but not from the rownames. Can anybody help?