console is shrowing False result


Athouse there seems to be no problem in data set . please suggest some some soluction

I think you are confusing rownames of pheno (which look like simple integers to me) with the contents of column x of pheno.

I would agree with @nirgrahamuk on this.

If you are intending for the X column of pheno to be the row names of that table you could try:

Converting the X column of pheno to be rownames using tibble::column_to_rownames()

library(tibble)
pheno <- column_to_rownames(pheno, "X")

or importing the first column of your CSV to be row names from the start

pheno <- read.csv("phenotype.csv", row.names = 1)

What may not be guaranteed is that the row names will appear exactly how the column names of count appear, because the original data contains spaces and characters that are not normally allowed in row and column names, so these are converted to a ..

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.