These are just the function examples. You should check that an object is of class data.frame before melting it.
> # To find all data contributors who are active:
> active.cont <- get.contacts(contactstatus = 'active')
Error in get.contacts(contactstatus = "active") :
The contactstatus must be a character string.
>
> # To find all data contributors who have the last name "Smith"
> smith.cont <- get.contacts(familyname = 'Smith')
The API call was successful, you have returned 28 records.
Error in UseMethod("melt", data) :
no applicable method for 'melt' applied to an object of class "data.frame"
Calls: get.contacts ... withCallingHandlers -> cast -> eval -> melt -> melt.list -> lapply -> FUN
>
>
These are just the function examples. You should check that an object is of class
data.frame
before melting it.