Skip to content

Commit

Permalink
change rbind.fill to rbindlist wtih fill = TRUE
Browse files Browse the repository at this point in the history
replace line 65: 
xdf.iconv <- rbind.fill(xdf.iconv, nextRecords)

with improved code:
xdf.iconv <- rbindlist(xdf.iconv, nextRecords, fill = TRUE)

from source:
hiratake55#23
  • Loading branch information
raybuhr committed Dec 9, 2015
1 parent 516ffd5 commit aa7334c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rforcecom.query.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function(session, soqlQuery, queryAll=FALSE){
try(nextRecordsUrl <- iconv(xmlValue(x.root[['nextRecordsUrl']]), from="UTF-8", to=""), TRUE)
if(!is.na(nextRecordsUrl)){
nextRecords <- rforcecom.queryMore(session, nextRecordsUrl)
xdf.iconv <- rbind.fill(xdf.iconv, nextRecords)
xdf.iconv <- rbindlist(xdf.iconv, nextRecords, fill = TRUE)
}

return(data.frame(xdf.iconv))
Expand Down

0 comments on commit aa7334c

Please sign in to comment.