Thanks Ivan!

This makes perfect sense now!

All the best,

Thomas Subia
Statistician

-----Original Message-----
From: Ivan Krylov <krylov.r...@gmail.com> 
Sent: Wednesday, December 15, 2021 5:21 AM
To: Thomas Subia via R-help <r-help@r-project.org>
Cc: Thomas Subia <tgs...@yahoo.com>; Thomas Subia 
<thomas.su...@fmindustries.com>
Subject: Re: [R] transformTukey

On Wed, 15 Dec 2021 05:11:47 -0800
Thomas Subia via R-help <r-help@r-project.org> wrote:

> data = read.delim("clipboard")

What type of value does read.delim return? Use str() to find out.

> > library(rcompanion)
> > trans_data <- transformTukey(data)
> 
> Error in is.infinite(TRANS) : 
>   default method not implemented for type 'list'

What type of value does transformTukey expect in the "x" argument? See 
help(transformTukey).

Most likely, your "data" is a data.frame, and transformTukey() expects a 
vector, requiring you to extract the "Flatness" component from the data.frame 
using the `[` or the `$` operator.

--
Best regards,
Ivan

______________________________________________
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