These methods allow access and control over dataset settings. Currently supported settings include:
User Authorizations for view-only users ('viewers_can_export', 'viewers_can_share', and 'viewers_can_change_weight'); and
'weight', which determines the default weighting variable for the dataset Additional settings will be added in the future. See http://docs.crunch.io/#fragments, under 'Settings', for an up-to-date list of settings supported throughout the Crunch system. Clients may also provide and use custom settings if they choose.
settings(x)settings(x) <- value
CrunchDataset
A settings object (ShojiEntity
), for the setter
The getter returns a settings object (ShojiEntity
). The setter
returns the dataset (x
), duly modified.
# NOT RUN {
settings(ds)
settings(ds)$viewers_can_export <- TRUE
settings(ds)$weight <- ds$myWeightVariable
# }
Run the code above in your browser using DataLab