[R] different file types

Seth Falcon sfalcon at fhcrc.org
Tue Mar 11 22:55:14 CET 2003

> Also, is there a way to make associative arrays?  
> It would be nice to be able to get the format from input and then have
> 	command<-array[format]

Named lists might do what you want.  For example,

fruitcolor <- list(apple="red", grape="green", orange="orange")

Then you could say,




to get "red".

+ seth

More information about the R-help mailing list