Como anexar na lista R
mylist <- list( "Sunday", "Monday" )
mylist<- append(myList, "Tuesday")
print(mylist)
[[1]]
[1] "Sunday"
[[2]]
[1] "Monday"
[[3]]
[1] "Tuesday"
////////////////////////////////////////////////////////////////////////////
mylist <- list( "Sunday", "Monday", "Wednesday" )
mylist<- append(myList, "Tuesday", after=2) // indexing the position to append element
print(mylist)
[[1]]
[1] "Sunday"
[[2]]
[1] "Monday"
[[3]]
[1] "Tuesday"
[[4]]
[1] "Wednesday"
Asir In Tisar