[R] error in names

Gavin Simpson gavin.simpson at ucl.ac.uk
Tue Aug 11 20:05:23 CEST 2009

On Tue, 2009-08-11 at 17:49 +0000, Inchallah Yarab wrote:
> Hi,
> what is meaning this errors !!!
> Error in names(o.pr)[p.ok] <- names(qs) : 
>  incompatible types (from NULL to character) in subassignment type fix

I can replicate this error by 'qs' not having names. what does 


show? Is this what you expect?

> In addition: Warning message:
> In Ops.factor(from, (0:(length.out - 1)) * by) :
>  + not meaningful for factors

That pertains to a previous step perhaps and indicates something else is
not what you think it is in, so you should check out what that is wrong.
Efefctively, you have some data that are stored as factors yet you are
treating them as numeric. Use 


where DAT are your data objects. Do this for each data object in turn to
see if all the variables are numeric.

Note that this one is just a warning, but something you should look at.


> thank you very much 
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at 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.
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk

More information about the R-help mailing list