0
如何基於在df2
值與最近的比賽
x <- "Sample Chromosome Start
Samp.1 6 14150000
Samp.1 7 70000
Samp.1 13 19250000"
df1 <-read.table(text=x, header=T, sep = "")
x2 <- "Name Chromosome Position
7:50000 7 50000
7:57670000 7 57670000
6:14170000 6 14170000
6:26950000 6 26950000
6:36950000 6 36950000
13:19270000 13 19270000
13:83370000 13 83370000"
df2 <- read.table(text=x2, header=T, sep="")
output <- "Sample Chromosome Start
Samp.1 6 14170000
Samp.1 7 50000
Samp.1 13 19270000"
shift whic columns?你能清楚嗎? –
如果df1 [,2] == df2 [,2]相對於df2 [,3]移動df1 [,3] – beginner
「shift」是什麼意思?這個詞有幾十個含義。 –