Menambahkan Kunci Baru di Kamus R
sounds <- c(
"cat"="meow",
"dog"="woof",
"horse"="neigh"
)
sounds["cow"] <- "moo"
print(sounds)
Asir In Tisar
sounds <- c(
"cat"="meow",
"dog"="woof",
"horse"="neigh"
)
sounds["cow"] <- "moo"
print(sounds)