Peter http://www.J.com enter image description here dat[c(2,7), "referal"] <- NA
col1 col2 col3
Alex NA URL
Mike URL NA
John URL URL
Peter NA NA
James NA URL