Learn R Programming

cricketdata (version 0.3.0)

find_player_id: Find a player id from cricinfo.com

Description

Find a player id from cricinfo.com

Usage

find_player_id(searchstring)

Value

A table of matching players, their ids, and teams they played for.

Arguments

searchstring

Part of a player name(s) to search for. Can be a character vector.

Author

Rob J Hyndman

See Also

fetch_player_data() to download playing statistics for a player, and fetch_player_meta() to download meta data on players.

Examples

Run this code
if (FALSE) {
(perry <- find_player_id("Perry"))
EllysePerry <- fetch_player_data(perry[2, "ID"], "test")
}

Run the code above in your browser using DataLab