as.data.frame.pixset | R Documentation |
Methods to convert pixsets to various objects
## S3 method for class 'pixset' as.data.frame(x, ..., drop = FALSE)
x |
pixset to convert |
... |
ignored |
drop |
drop flat dimensions |
where
px <- boats > 250 #Convert to array of logicals as.logical(px) %>% dim #Convert to data.frame: gives all pixel locations in the set as.data.frame(px) %>% head #Drop flat dimensions as.data.frame(px,drop=TRUE) %>% head
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.