[R] Percent transformation
Berend Hasselman
bhh at xs4all.nl
Wed Mar 15 07:27:21 CET 2017
> On 14 Mar 2017, at 22:19, Christoph Puschmann <c.puschmann at student.unsw.edu.au> wrote:
>
> Hello all,
>
> I am having a problem of transforming decimals into percentage. Specifically, I get the following error message:
>
> "Error in UseMethod("round_any") :
> no applicable method for 'round_any' applied to an object of class “data.frame"
>
Did you read the Posting Guide.
DO NOT post in html.
Your data are mangled.
Your code is incomprehensible.
Reproducible example please.
Where does percent come from?
Berend Hasselman
> My code looks the following:
>
> x <- sp[1:5,2:6]
> x = percent(x)
>
> My Data:
>
> SD D N A SA
>
>
>
>
>
>
> 1
>
> 0.005769231
>
> -0.14230769
>
> 0.071153846
>
> 0.09615385
>
> -0.030769231
>
> 2
>
> -0.057692308
>
> -0.08461538
>
> 0.038461538
>
> 0.01923077
>
> 0.084615385
>
> 3
>
> -0.076923077
>
> -0.10384615
>
> 0.221153846
>
> -0.04423077
>
> 0.003846154
>
> 4
>
> -0.167307692
>
> -0.13653846
>
> -0.003846154
>
> 0.16153846
>
> 0.146153846
>
> 5
>
> 0.000000000
>
> -0.01923077
>
> 0.011538462
>
> 0.21923077
>
> -0.2115384
>
> All help would be appreciated. Thank you.
>
> Christoph
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
More information about the R-help
mailing list