powered by
This is a method for subset() for the case when the input object is a probability space of class ps.
subset()
ps
subset(x, …)# S3 method for ps subset(x, subset, ...)
# S3 method for ps subset(x, subset, ...)
a probability space.
logical expression indicating elements or rows of space to keep: missing values are taken as false.
space
further arguments to be passed to or from other methods.
A ps object, a subset of a probability space.
This function simply extends the existing subset() function to ps objects.
intersect, setdiff, union, isin
intersect
setdiff
union
isin
# NOT RUN { L <- tosscoin(2) M <- urnsamples(L, 3) N <- probspace(M) subset(N, all(toss1=="H")) subset(N, any(toss2=="T")) # }
Run the code above in your browser using DataLab