[R] Extracting a particular column from list

Eric Berger er|cjberger @end|ng |rom gm@||@com
Thu Jan 16 12:23:47 CET 2020


> 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 using 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 using 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]]



More information about the R-help mailing list