> u <- list(a=1:5, b=letters[1:3]) > u # $a # [1] 1 2 3 4 5 # # $b # [1] "a" "b" "c" > u[["a"]] [1] 1 2 3 4 5
On Thu, Jan 16, 2020 at 1:04 PM Faheem Jan via R-help <r-help@r-project.org> wrote: > Hi. How to extract a column from the list.. I will be thanks full.. > > Sent from Yahoo Mail on Android > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.