Skip to content

Commit

Permalink
Merge pull request #139 from yanturgeon/patch-1
Browse files Browse the repository at this point in the history
Update getMembers.R
  • Loading branch information
pablobarbera authored Jul 12, 2017
2 parents 0271880 + 70c993b commit c7cd323
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rfacebook/R/getMembers.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ getMembers <- function(group_id, token, n=5000, api=NULL){
# if data, return a data frame
df <- data.frame(
name = unlist(lapply(content$data, '[[', 'name')),
first_name = unlist(lapply(content$data, '[[', 'first_name')),
last_name = unlist(lapply(content$data, '[[', 'last_name')),
id = unlist(lapply(content$data, '[[', 'id')),
administrator = unlist(lapply(content$data, '[[', 'administrator')),
stringsAsFactors=F)
Expand Down

0 comments on commit c7cd323

Please sign in to comment.