Skip to content

permissive mode and booleDS, c and rep #252

@tombisho

Description

@tombisho

I am currently revisiting some of the disclosure attacks and was wondering about the functions booleDS, c and rep which don't seem to be included in the list to be blocked with the introduction of permissive mode.

booleDS can be used for the same purpose as subsetting because you can perform a logical test (e.g. on an index) to mark a single row with a 1 and the rest with zeros. Then you can multiply, take the mean etc to recover the value.

the c and rep functions are normally natively available via ds.assign:

ds.assign(toAssign = "c(D$LAB_TSC,D$LAB_TSC)", newobj = "fact1")

ds.assign(toAssign = "c(1,rep(0,4127))", newobj = "fact1")

These allow the same tricks as cDS and repDS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions