做多变量孟德尔随机化分析的过程中,用merge函数分别提取暴露和结局中的SNP,在格式标准化时,报错:错误于format_data(merge_Alcohol1, type = "exposure", snp_col = "SNP", : SNP column not found。但是我检查了merge_Alcohol1这个文件,里面有SNP这列,并且列名写的一模一样,SNP的类型是CHr,请问怎么解决这个报错

#暴露数据的提取
merge_Alcohol1 <- merge(unique_exp,Alcohol1,by.x = "SNP",by.y = "SNP")#注意这两个文件里SNP这列的命名是不是“SNP”,如果不是的话要把代码这里改成实际的列名
merge_Smokeindex1 <- merge(unique_exp,Smokeindex1,by.x = "SNP",by.y = "SNP")
#格式标准化
merge_Alcohol1 <- data.frame(merge_Alcohol1)
merge_Alcohol1 <- format_data(merge_Alcohol1,type = "exposure",snp_col = "SNP",beta_col = "BETA",se_col = "SE",
eaf_col = "EAF",effect_allele_col = "A1",other_allele_col = "A2",pval_col = "P")
merge_Smokeindex1 <- data.frame(merge_Smokeindex1)
merge_Smokeindex1 <- format_data(merge_Smokeindex1,type = "exposure",snp_col = "SNP",beta_col = "BETA",se_col = "SE",
eaf_col = "EAF",effect_allele_col = "A1",other_allele_col = "A2",pval_col = "P")