Displaying 1 result from an estimated 1 matches for "brchr1g00001v4".
2012 Oct 19
2
replacing rows data.frame
...t;- c('agi', 'hit_len', 'q_len', 'identity', 'ratio', 'e',
'ok' ,'gene')
alloc$gene <- unique(mid2agi$gene)
this results in:
> head(alloc)
agi hit_len q_len identity ratio 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 <- whi...