R软件修改染色体和位置为RS号
命令如下
library(dplyr)
a = read.table("exposure.csv",header=T,check.names=F,sep=",")
match = read.table("snp150_hg19.txt",header=T,check.names=F,sep=",")
need=dplyr::left_join(a,match,by="chromosome:start")
运行完need后报错如下
Error in dplyr::left_join()
:
! Join columns in x
must be present in the data.
✖ Problem with chromosome:start
.
Run rlang::last_error()
to see where the error occurred.
rlang::last_error()
<error/rlang_error>
Error indplyr::left_join()
:
! Join columns inx
must be present in the data.
✖ Problem withchromosome:start
.
Backtrace:
- dplyr::left_join(a, match, by = "chromosome:start")
- dplyr:::left_join.data.frame(a, match, by = "chromosome:start")
Runrlang::last_trace()
to see the full context.
要怎么解决啊