ID EN
Miscellaneous

unname

R Base 3.6.2 🇮🇩 Bahasa Indonesia

Hapus atribut nama atau dimnames dari objek R.

Syntax

R
unname(obj, force = FALSE)

Arguments

Parameter Deskripsi
obj an R object.
force logical; if true, the dimnames (names and row names) are removed even from data.frames.

Return Value

Objek sebagai objek tetapi tanpa nama atau nama dim.

Contoh

Example
R
# NOT RUN {
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 ...
barplot(unname(z), axes = FALSE)
# }