I have a one row data frame that looks like this:
Donor Treatment Timepoint
MK434_016 WT5 ST002_50uM 6hr
And a character string which looks like this:
[1] "AAACAAGCAAACAAGAATTCGGTT-1" "AAACAAGCAAACAATCATTCGGTT-1" "AAACAAGCAAACCTGAATTCGGTT-1" "AAACAAGCAAACTTGGATTCGGTT-1"
[5] "AAACAAGCAAAGACCCATTCGGTT-1" "AAACAAGCAAAGGTAAATTCGGTT-1"
I'd like to merge the two to create a data frame that looks like this:
Donor Treatment Timepoint
AAACAAGCAAACAAGAATTCGGTT-1 WT5 ST002_50uM 6hr
AAACAAGCAAACAATCATTCGGTT-1 WT5 ST002_50uM 6hr
AAACAAGCAAACCTGAATTCGGTT-1 WT5 ST002_50uM 6hr
etc...
I've tried merging them in several different ways using rbind() or paste() but can't figure out how to get the full data frame I'm looking for.
I'll first join them together without row names, as some tools honor them, some ignore them, and some actively remove them.
From here, if you really want to remove the
barcode
info from the columns and make them row names, it is simple enough:A quick
dplyr
version:Data