return_data_as_dataframe {rPDBapi}R Documentation

Transform Response Data into a Dataframe

Description

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.

Usage

return_data_as_dataframe(response, data_type, ids)

Arguments

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.

Value

A dataframe constructed from the response data. Returns NULL if the response is null or empty.


[Package rPDBapi version 1.1 Index]