bgg_namestyle {bggAnalytics} | R Documentation |
Detect the namestyle of the data table
Description
Detects whether the dt
data.table was created by a bggAPI
object with 'pretty'
or 'classic'
names. Ends with the error if
one of them cannot be unequivocally determined. This can be useful when
working on a modified table that is no longer directly connected to any
bggAPI
object.
Usage
bgg_namestyle(dt)
Arguments
dt |
a data.table from |
Value
A single string.
Author(s)
Jakub Bujnowicz bujnowiczgithub@gmail.com
Examples
gm <- bggGames$new(ids = 167791)
bgg_namestyle(gm$data)
gm$switch_namestyle("pretty")
bgg_namestyle(gm$data)
# Breaks
# bgg_namestyle(iris)
[Package bggAnalytics version 0.2.1 Index]