return_data_as_dataframe {rPDBapi} | R Documentation |
This function converts response data from the RCSB Protein Data Bank (PDB) into a structured dataframe. It handles null or empty responses and flattens the data for dataframe conversion.
return_data_as_dataframe(response, data_type, ids)
response |
A list containing the response data from a PDB query. |
data_type |
A string indicating the type of data contained in the response. This parameter is not directly used in the function but might be relevant for context. |
ids |
A vector of identifiers corresponding to the response data. |
A dataframe constructed from the response data. Returns NULL if the response is null or empty.