parse_drug_pdb_entries
returns tibble of drug pdb entries elements.
parse_drug_pdb_entries(save_table = FALSE, save_csv = FALSE,
csv_path = ".", override_csv = FALSE)
boolean, save table in database if true.
boolean, save csv version of parsed dataframe if true
location to save csv files into it, default is current location, save_csv must be true
override existing csv, if any, in case it is true in the new parse operation
drug pdb entries node attributes tibble
This functions extracts the pdb entries element of drug node in drugbank
xml database with the option to save it in a predefined database via
open_db
method. It takes one single optional argument to
save the returned tibble in the database.
It must be called after get_xml_db_rows
function like
any other parser function.
If get_xml_db_rows
is called before for any reason, so
no need to call it again before calling this function.
# NOT RUN {
# return only the parsed dataframe
parse_drug_pdb_entries()
# save in database and return parsed dataframe
parse_drug_pdb_entries(save_table = TRUE)
# save parsed dataframe as csv if it does not exist in current
# location and return parsed dataframe.
# If the csv exist before read it and return its data.
parse_drug_pdb_entries(save_csv = TRUE)
# save in database, save parsed dataframe as csv if it does not exist
# in current location and return parsed dataframe.
# If the csv exist before read it and return its data.
parse_drug_pdb_entries(ssave_table = TRUE, save_csv = TRUE)
# save parsed dataframe as csv if it does not exist in given location
# and return parsed dataframe.
# If the csv exist before read it and return its data.
parse_drug_pdb_entries(save_csv = TRUE, csv_path = TRUE)
# save parsed dataframe as csv if it does not exist in current
# location and return parsed dataframe.
# If the csv exist override it and return it.
parse_drug_pdb_entries(save_csv = TRUE, csv_path = TRUE, override = TRUE)
# }
Run the code above in your browser using DataLab