Message-ID: <CAGxFJbS8UP8mkokz5xsRpFtw5pN2rK8OaVUQLk=WB3pSt4L0=g@mail.gmail.com>
Date: 2016-04-16T15:20:33Z
From: Bert Gunter
Subject: Mean of hexadecimal numbers
In-Reply-To: <5712346F.4050003@utu.fi>
?strtoi
You'll have to remove the "#" first, e.g. via substring()
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sat, Apr 16, 2016 at 5:47 AM, Atte Tenkanen <attenka at utu.fi> wrote:
> Hi,
>
> How would you calculate the "mean colour" of several colours, for example
> c("#FF7C00","#00BF40","#FFFF00")?
>
> Yours,
>
> Atte Tenkanen
>
> ______________________________________________
> R-help at 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.