Re: [R] Problem with filling dataframe's column

2023-06-14 Thread avi.e.gross
Richard, it is indeed possible for different languages to choose different approaches. If your point is that an R named list can simulate a Python dictionary (or for that manner, a set) there is some validity to that. You can also use environments similarly. Arguably there are differences i

Re: [R] Problem with filling dataframe's column

2023-06-14 Thread Richard O'Keefe
Consider m <- list(foo=c(1,2),"B'ar"=as.matrix(1:4,2,2),"!*#"=c(FALSE,TRUE)) It is a collection of elements of different types/structures, accessible via string keys (and also by position). Entries can be added: m[["fred"]] <- 47 Entries can be removed: m[["!*#"]] <- NULL How much more