Semua bingkai data memiliki atribut nama baris, vektor karakter dengan panjang jumlah baris tanpa duplikat atau nilai yang hilang. Untuk kenyamanan, ini adalah fungsi umum dimana pengguna dapat menulis metode lain, dan ada metode default untuk array. Deskripsi di sini adalah untuk metode data.frame. `.rowNamesDF
row.names(x)
row.names(x) <- value
.rowNamesDF(x, make.names=FALSE) <- value
| Parameter | Deskripsi |
|---|---|
x |
object of class "data.frame", or any other class for which a method has been defined. |
make.names |
logical, i.e., one of FALSE, NA, TRUE, indicating what should happen if the specified row names, i.e., value, are invalid, e.g., duplicated or NA. The default (is back compatible), FALSE, will signal an error, where NA will “automatic” row names and TRUE will call make.names(value, unique=TRUE) for constructing valid names. |
value |
an object to be coerced to character unless an integer vector. It should have (after coercion) the same length as the number of rows of x with no duplicated nor missing values. NULL is also allowed: see ‘Details’. |