A question about data frames in R. I want to extract a row from a data frame, along with its position(row number) in the original data frame. The idea is to create a new data f
You can do this in one or two lines of code:
rNo <- as.integer(rownames(patchList[which(patchListTop5$sensitivity == patchLocalSpec),])) patchLocalNo <- cbind(patchLocalNo[rNames,], rNo)