Examples for 'base::unname'


Remove 'names' or 'dimnames'

Aliases: unname

Keywords: utilities

### ** Examples

require(graphics); require(stats)

## Answering a question on R-help (14 Oct 1999):
col3 <- 750+ 100*rt(1500, df = 3)
breaks <- factor(cut(col3, breaks = 360+5*(0:155)))
z <- table(breaks)
z[1:5] # The names are larger than the data ...
breaks
(360,365] (370,375] (385,390] (395,400] (400,405] 
        1         1         5         3         1 
barplot(unname(z), axes = FALSE)
plot of chunk example-base-unname-1

[Package base version 4.2.3 Index]