catmaid_userids convert login names to numeric ids

catmaid_get_user_list(pid = 1, conn = NULL, ...)

catmaid_userids(x, pid = 1, conn = NULL, ...)

Arguments

pid

Project id (default 1)

conn

A catmaid_connection objection returned by catmaid_login. If NULL (the default) a new connection object will be generated using the values of the catmaid.* package options as described in the help for catmaid_login.

...

Additional arguments passed to the catmaid_fetch function

x

A character vector of login names. If x contains valid integer (or numeric) ids then they will be returned as is.

Value

For catmaid_get_user_list a data.frame with

For catmaid_userids an integer vector of numeric ids

See also

Examples

# \donttest{ head(catmaid_get_user_list())
#> id login full_name first_name last_name color #> 1 243 wolskyd 0.290622, 0.213735, 1.000000 #> 2 282 upload_user 0.744291, 1.000000, 0.720093 #> 3 261 williamsonr 0.593947, 0.628997, 1.000000 #> 4 -1 AnonymousUser 1, 0, 0 #> 5 317 asa_b 0.984741, 0.054524, 1.000000 #> 6 87 tavosanisg 0.257581, 0.049968, 1.000000 #> primary_group_id #> 1 NA #> 2 NA #> 3 NA #> 4 NA #> 5 NA #> 6 NA
# } # \donttest{ catmaid_userids(1)
#> [1] 1
catmaid_userids('greg')
#> [1] NA
# }