Joh*_*ith 14 sharepoint r sharepoint-list dataframe
有没有人能够将R中的SharePoint列表导入为数据帧?
我有两个单独的数据源,一个来自SharePoint列表,另一个来自我希望运行分析的数据库.我能够毫无问题地连接到数据库,但似乎无法找到连接到SharePoint列表的任何内容.
SharePoint服务器是2007
小智 13
我一直在努力使用R阅读SharePoint 2010列表一段时间.基本上,我使用SharePoint Web服务从列表中返回结果,然后使用xmlToDataFrame转换为数据帧.
URL <- "http://yoursharepointserver/_vti_bin/ListData.svc/yourlist"
data = xmlParse(readLines(URL))
## get the individual list items
items = getNodeSet(data, "//m:properties")
## convert to a data frame
df = xmlToDataFrame(items, stringsAsFactors = FALSE)
Run Code Online (Sandbox Code Playgroud)
由于我正在使用Web服务,因此我可以在返回结果之前过滤列表,这对克服SharePoint Web服务的限制非常有帮助.以下链接非常有用... http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/01/21/introduction-to-querying-lists-with-rest-and-listdata-svc-in -sharepoint-2010.aspx