Skip to content
Prev 174360 / 398513 Next

struggling with pairlists

It was not clear what you were asking for.  Did you want a 'list' of
'lists' pairs?  What are you going to use the data for?  How are you
expecting to access it?  This will create a list similar to:

z <- list(list(variable="TrendOff", value=0), list(.......
+                 "Step1HSOff","Step1NumHSOff","Step1NumHSOff","Step1ExtOff",
+                 "Step2HSOff","Step2NumHSOff","Step2NumHSOff","Step2ExtOff",
+                "Step3HSOff","Step3NumHSOff","Step3NumHSOff","Step3ExtOff",
+                "Step4HSOff","Step4NumHSOff","Step4NumHSOff","Step4ExtOff" )
+     list(variable=flags_nam[z], value=flags_val[z])
+ })
list(structure(list(variable = "TrendOff", value = 0), .Names = c("variable",
"value")), structure(list(variable = "MOdwt", value = 1), .Names =
c("variable",
"value")), structure(list(variable = "ZeroPadding", value = 1), .Names
= c("variable",
"value")), structure(list(variable = "Step1HSOff", value = 1), .Names
= c("variable",
"value")), structure(list(variable = "Step1NumHSOff", value = 4),
.Names = c("variable",
"value")), structure(list(variable = "Step1NumHSOff", value = 1),
.Names = c("variable",
"value")), structure(list(variable = "Step1ExtOff", value = 1), .Names
= c("variable",
"value")), structure(list(variable = "Step2HSOff", value = 1), .Names
= c("variable",
"value")), structure(list(variable = "Step2NumHSOff", value = 4),
.Names = c("variable",
"value")), structure(list(variable = "Step2NumHSOff", value = 1),
.Names = c("variable",
"value")), structure(list(variable = "Step2ExtOff", value = 1), .Names
= c("variable",
"value")), structure(list(variable = "Step3HSOff", value = 1), .Names
= c("variable",
"value")), structure(list(variable = "Step3NumHSOff", value = 4),
.Names = c("variable",
"value")), structure(list(variable = "Step3NumHSOff", value = 1),
.Names = c("variable",
"value")), structure(list(variable = "Step3ExtOff", value = 1), .Names
= c("variable",
"value")), structure(list(variable = "Step4HSOff", value = 1), .Names
= c("variable",
"value")), structure(list(variable = "Step4NumHSOff", value = 4),
.Names = c("variable",
"value")), structure(list(variable = "Step4NumHSOff", value = 1),
.Names = c("variable",
"value")), structure(list(variable = "Step4ExtOff", value = 1), .Names
= c("variable",
"value")))

        
On Fri, Mar 20, 2009 at 12:10 PM, <mauede at alice.it> wrote: