Description Usage Arguments Details Value Note References See Also Examples

Computes the closure of knowledge structures.

1 2 3 4 5 6 |

`x` |
An |

`operation` |
The set operation under which the closure is computed ("union" or "intersection"). |

`...` |
Other arguments to be passed to methods. |

The `closure`

method for objects of class `kstructure`

,
`kbase`

, or `kfamset`

performs the closure of a
knowledge structure, base, or family of sets by computing
the `"union"`

, `"intersection"`

, `"complement"`

, or
symmetric difference of any two knowledge states. `"union"`

is also
used as a basis for the `kspace`

function.

An **R** object of the same class as `x`

where each subset represents
one knowledge state of the resulting knowledge structure.

The implementation of union is more efficient than the one in `sets`

.

Doignon, J.-P., Falmagne, J.-C. (1999) *Knowledge Spaces*. Heidelberg:
Springer Verlag.

`kstructure`

, `kspace`

, `kbase`

,
`kfamset`

, `closure`

1 2 3 | ```
kst <- kstructure(set(set("a"), set("a","b"), set("a","c"), set("d","e"),
set("a","b","d","e"), set("a","c","d","e"), set("a","b","c","d","e")))
closure(kst, operation="union")
``` |

```
Loading required package: proxy
Attaching package: 'proxy'
The following objects are masked from 'package:stats':
as.dist, dist
The following object is masked from 'package:base':
as.matrix
Loading required package: relations
Loading required package: sets
{{"a"}, {"a", "b"}, {"a", "c"}, {"d", "e"}, {"a", "b", "c"}, {"a", "d",
"e"}, {"a", "b", "d", "e"}, {"a", "c", "d", "e"}, {"a", "b", "c", "d",
"e"}}
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.