> On Jun 16, 2016, at 3:50 PM, Berend Hasselman <b...@xs4all.nl> wrote:
> 
> 
>> On 16 Jun 2016, at 20:02, Eduardo M. A. M.Mendes <emammen...@gmail.com> 
>> wrote:
>> 
>> Thanks  Bill for pointing this out.  I haven’t noticed it.
>> 
>> Vineetha, try as.double(rep(0,n)) or as.matrix(rep(0,n)),
>> 
> 
> Why not simply numeric(n)?
> 
> Berend Hasselman
> 

as.numeric(rep(0,n)) works too. Please remember that he wants a vector nor a 
scalar.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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