Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list_participants returns a data.frame with a column that is a data.frame #9

Closed
andrewheiss opened this issue Jun 4, 2016 · 5 comments

Comments

@andrewheiss
Copy link
Member

Received via e-mail:


Is this intended behaviour?

> req2 <- call_limer("list_participants", list(971744))
> names(req2)
[1] "tid"              "token"            "participant_info"
> get_session_key(password=LSPASSWORD,username = LSUSER)
[1] "xwi3uhr5kf4wapmv255i8k8s5gkcvhgr"
> req2 <- call_limer("list_participants", list(971744))
> names(req2)
[1] "tid"              "token"            "participant_info"
> class(req2$participant_info)
[1] "data.frame"
> names(req2$participant_info)
[1] "firstname" "lastname"  "email"

So list_participants returns a dataframe of 3 columns, one of which is a dataframe on itself.

@jsibley2
Copy link

jsibley2 commented Jun 6, 2016

As mentioned in another issue, get_participants seems not to be working.

Using call_limer seems to work, but how do we ask for attributes to be included in the results?

Thanks!

@tammoterhark
Copy link

@jsibley2 : did you manage to find out? I am facing the same thing... Would love to get some direction.

@Jan-E
Copy link
Contributor

Jan-E commented Nov 4, 2016

So list_participants returns a dataframe of 3 columns, one of which is a dataframe on itself.

This is intended behaviour by the designers of LS:
https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/remotecontrol/remotecontrol_handle.php#L1854

@Jan-E
Copy link
Contributor

Jan-E commented Nov 4, 2016

... how do we ask for attributes to be included in the results?

That is another issue.

participants<-get_participants(693329,iStart=0,iLimit=1007,bUnused=TRUE,aAttributes=c('attribute_1','attribute_2'))
is the way to do that.

@andrewheiss
Copy link
Member Author

andrewheiss commented Feb 28, 2017

Closing this since it reflects the API's expected behavior (and it's clearer now thanks to #14)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants