Learn R Programming

vDiveR (version 2.0.1)

json2csv: JSON2CSV

Description

This function converts DiMA (v5.0.9) JSON output file to a dataframe with 17 predefined columns which further acts as the input for other functions provided in this vDiveR package.

Usage

json2csv(
  json_data,
  host_name = "unknown host",
  protein_name = "unknown protein"
)

Value

A dataframe which acts as input for the other functions in vDiveR package

Arguments

json_data

DiMA JSON output dataframe

host_name

name of the host species

protein_name

name of the protein

Examples

Run this code
inputdf<-json2csv(JSON_sample)

Run the code above in your browser using DataLab