search for: submid2agi

Displaying 1 result from an estimated 1 matches for "submid2agi".

2012 Oct 19
2
replacing rows data.frame
...e ok gene NA NA NA NA NA NA NA BrChr1g00001V4 NA NA NA NA NA NA NA BrChr1g00002V4 and I already have a dataframe (mid2agi) containing both integers and factors. In my empty dataframe I want to replace rows using: for (i in (1:nrow(alloc)) ) { find <- alloc[i,]$gene submid2agi <- subset(mid2agi, gene %in% find) max <- which.max(submid2agi$identity * submid2agi$ratio) if (length(max) > 0){ *alloc[i,] <- submid2agi[max,]* } } But my problem is that all values are now interpreted as integers, so my text in my factors are converted to numbers....