hscard: hscard

Description Usage Arguments Value Examples

View source: R/hscard.R

Description

This function shows the data frame with all the cards with your choice of classifications. For various search terms for each classification,
you can use hsmeta function in hstone package.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
hscard(
  id,
  secret,
  class = "",
  manaCost = "",
  attack = "",
  health = "",
  rarity = "",
  type = "",
  minionType = "",
  textFilter = "",
  orderBy = ""
)

Arguments

id

A client Id you obtained from Blizzard api.

secret

A client Secret you obtained from Blizzard api.

class

Class classification you want to obtain. You must enter the slug of the class that can be obtained using hsmeta function.

manaCost

Mana Cost value classification you want to obtain.

attack

Attack value classification you want to obtain.

health

Health value classification you want to obtain.

rarity

Rarity classification you want to obtain. You must enter the slug of the class that can be obtained using hsmeta function.

type

Type classification you want to obtain. You must enter the slug of the class that can be obtained using hsmeta function.

minionType

Minion type classification you want to obtain. You must enter the slug of the class that can be obtained using hsmeta function.

textFilter

Text classfication you want to obtain.

orderBy

Order by either health, attack, or mana cost of the cards you searched.

Value

A data frame with cards based on your selected choice for each classifications.

Examples

1
2
3
hscard(id = Sys.getenv("id"), secret = Sys.getenv("secret"), class = "mage", manaCost = 5, attack = 5, orderBy = "health")
hscard(id = Sys.getenv("id"), secret = Sys.getenv("secret"), rarity = "legendary", type = "spell", orderBy = "manaCost")
hscard(id = Sys.getenv("id"), secret = Sys.getenv("secret"), minionType = "murloc", textFilter = "Battlecry")

nhk2120/hstone documentation built on Dec. 12, 2019, 12:47 a.m.