[R] scan problems -- what can "what" be?
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Mon Dec 9 08:58:06 CET 2002
On Sun, 8 Dec 2002, Christopher Fonnesbeck wrote:
> Hello,
>
> I am trying to import a list of "structure" objects into R (data for BUGS,
> actually), but am having little success. In the help file for scan there
> dies not seem to be a list of valid values for the "what" keyword. Can
> anyone provide me with one? I have pasted in a sample input file that I am
There is no such list. As the help page says, it is the *type* of `what'
that counts. So it can be an integer, logical, numeric, complex or
character vector, or a list containing such vectors.
> trying to import below this message. I have tried
> what=list(structure,structure,structure) and variations thereof.
Those are arrays. Scan them as vectors and then add dimensions.
> Also, is there an easy way of searching the mailing list archives, so that
> I dont have to bother the list with silly questions like this one?
>
> Thanks,
> cjf
>
> list(
> move_n = structure(.Data=c(0.984,0.016, 0.000,
> 0.081, 0.904, 0.015,
> 0.000, 0.026, 0.974,
> 0.974, 0.026, 0.000,
> 0.052, 0.930, 0.018,
> 0.000, 0.014, 0.986), .Dim=c(3,3,2)),
>
> move_s = structure(.Data=c(0.506, 0.214, 0.280,
> 0.048, 0.689, 0.263,
> 0.002, 0.914, 0.084,
> 0.451, 0.262, 0.287,
> 0.062, 0.686, 0.252,
> 0.002, 0.890, 0.108), .Dim=c(3,3,2)),
>
> fidel = structure(.Data=c(0.890, 0.055, 0.055,
> 0.065, 0.870, 0.065,
> 0.060, 0.060, 0.880,
> 0.88, 0.06, 0.06,
> 0.07, 0.86, 0.07,
> 0.075, 0.075, 0.85),.Dim=c(3,3,2))
> )
>
> --
> Christopher J. Fonnesbeck GA Coop. Fish & Wildlife Research Unit
> chris at fisher.forestry.uga.edu University of Georgia
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list