我正在try 从R工作室的GitHub加载一个码本.URL是here.这是一个基于链接的md
文件,但我想加载它的原始文件.(如右上角所示,这是一个名为raw
的选项卡,当我单击它时,它显示pic2
).我try 使用提供的链接,但它不起作用.有人能告诉我如何做到这一点吗?非常感谢!
cddf<-url("https://github.com/HimesGroup/BMIN503/blob/master/DataFiles/NHANES_2007to2008_DataDictionary.md")
cd<-read.table(cddf )
Update: When I changed the code :
codebook<-read.table("https://raw.githubusercontent.com/HimesGroup/BMIN503/master/DataFiles/NHANES_2007to2008_DataDictionary.md",skip = 4, sep = "|", head = TRUE)
The r successfully read most of them, but the sep "|" did not work for two variables: INDHHIN2 and MCQ010. See pic. Can anyone help to figure out why? Thanks~~!