Learn R Programming

yorkr (version 0.0.42)

convertAllYaml2RDataframes: Convert and save all Yaml files to dataframes

Description

This function coverts all Yaml files from source directory to data frames. The data frames are then stored as .RData. The saved files are of the format team1-team2-date.RData For e.g. England-India-2008-04-06.RData etc

Usage

convertAllYaml2RDataframes(sourceDir=".",targetDirMen=".",targetDirWomen=".")

Value

None

Arguments

sourceDir

The source directory of the yaml files

targetDirMen

The target directory in which the data frames for men are stored as RData files

targetDirWomen

The target directory in which the data frames for women are stored as RData files

Author

Tinniam V Ganesh

References

https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/

See Also

bowlerMovingAverage
bowlerWicketsVenue
convertYaml2RDataframe

Examples

Run this code
if (FALSE) {
# In the example below ../yamldir is the source dir for the yaml files
convertAllYaml2RDataframes("../yamldir","../data")
}

Run the code above in your browser using DataLab