find_player_id {cricketdata}R Documentation

Find a player id from cricinfo.com

Description

Find a player id from cricinfo.com

Usage

find_player_id(searchstring)

Arguments

searchstring

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

Value

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

Author(s)

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

## Not run: 
(perry <- find_player_id("Perry"))
EllysePerry <- fetch_player_data(perry[2, "ID"], "test")

## End(Not run)

[Package cricketdata version 0.2.3 Index]