Solution:
list_data <- list("Pune","Nasik","Mumbai")
print(list_data)
names(list_data)<-c("Edu City","Grape City","Capital")
print(list_data)
list_data[4]<-"New element"
print(list_data)
list_data[4] <- NULL
print(list_data)
list_data[3] <- "updated element"
print(list_data[3])
0 Comments