Learn R Programming

OpenMindat (version 1.0.0)

saveMindatDataAs: Output file as a given format

Description

Save the mindat R dataframe to a specify format

Usage

saveMindatDataAs (inputdata,outputfname)

Value

No return value.If successful, the input data frame(df) will be saved to the specified file. Otherwise, it will report an error.

Arguments

inputdata

R dataframe of retrieived data from Mindat database.

outputfname

string. the output file name.

Examples

Run this code
if (FALSE) {
df <-geomaterials_search_name("Quartz")
saveMindatDataAs(df,"test.jsonld")
}

Run the code above in your browser using DataLab