Hi Friends,
I am new to R.

On R utility class pages, creating "named.list" is described with this command :
new("named.list",a=1,b=2)


For large matrix having two columns, such as :

"row1"   2334
"row2"   347
"row3"   379
...

I want to create a named.list like :
$row1
[1] 2334

$row2
[1] 347

...

Can anyone explain how "named.list" variable can be created by using two 
specified columns of a dataframe or matrix object, where one of the two columns 
is assigned as a name (string) and
other as its corresponding value ?

Thanks
                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to