ginal Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of Anser Chen
Sent: Tuesday, October 30, 2012 7:42 AM
To: r-help@r-project.org
Subject: [R] newbie: embeding seq in a list
Suppose I want to create a structure containing the following values:
0.8,0.
Hello
Just add "c()" collector as follows :
env <- list(c(0.8,0.9,1.0,1.1,1.2))
Cheers
Guillaume
--
View this message in context:
http://r.789695.n4.nabble.com/Re-newbie-embeding-seq-in-a-list-tp4647884p4647896.html
Sent from the R help mailing list archive at Nabble.com.
not
> ensure that a reasonable answer can be extracted from a given body of data.
> ~ John Tukey
>
>
> -Oorspronkelijk bericht-
> Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> Namens Anser Chen
> Verzonden: dinsdag 30 oktober 2012 13:42
> Aan: r
p: [R] newbie: embeding seq in a list
Suppose I want to create a structure containing the following values:
0.8,0.9,1.0,1.1,1.2
If I use
env <- list(0.8,0.9,1.0,1.1,1.2)
then R returns
> env
[[1]]
[1] 0.8
[[2]]
[1] 0.9
[[3]]
[1] 1
[[4]]
[1] 1.1
[[5]]
[1] 1.2
But, if I try to
Suppose I want to create a structure containing the following values:
0.8,0.9,1.0,1.1,1.2
If I use
env <- list(0.8,0.9,1.0,1.1,1.2)
then R returns
> env
[[1]]
[1] 0.8
[[2]]
[1] 0.9
[[3]]
[1] 1
[[4]]
[1] 1.1
[[5]]
[1] 1.2
But, if I try to 'save some key-strokes', and use
env <- list(seq(
5 matches
Mail list logo