Learn R Programming

miner (version 0.2.2)

find_entity: Find entity by name

Description

Find a Minecraft entity by name.

Usage

find_entity(name)

Arguments

name

Character string with a Minecraft entity name (can be a partial match)

Value

Data frame with a row or set of rows from the output of getEntityTypes() that match the queried name.

Details

We first look to see whether there is an exact match to the namex column in the output of getEntityTypes(). If there is, we return that row. If not, we use grep() with ignore.case=TRUE and return matching rows.

See Also

getEntityTypes(), find_item()

Examples

Run this code
# NOT RUN {
find_entity("HORSE")
find_entity("horse")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab