[R] Fuzzy_partition with fuzzy_trapezoid

Sarah Goslee sarah.goslee at gmail.com
Tue Aug 2 17:51:50 CEST 2016


As already discussed, yes, but you can't specify corners and height
twice in a single call.
Please do read the help for the functions you're interested in, and
perhaps go back to refresh yourself on some basic R.

> sets_options("universe", seq(from = 0, to = 10, by = 0.1))
> test1 = fuzzy_variable( a = fuzzy_trapezoid( corners = c( 0, 1, 2, 3 )))
>
> sets_options("universe",  seq( from = 0, to = 5, by = 0.1 ))
> test2 = fuzzy_variable( b = fuzzy_trapezoid( corners = c( 4, 5, 6, 7 )))
>

On Tue, Aug 2, 2016 at 11:14 AM, Arthur Stilben
<arthur.stilben at gmail.com> wrote:
> I already made this question, but I was not subscribed and not
> received any reply. I tried this:
>
>> install.packages("sets")
> ...
>> library(sets)
>> teste = fuzzy_partition(varnames = c('a', 'b'), FUN = fuzzy_trapezoid, corners = c(1,2,3,4), height = c(1,1), corners = c(5,6,7,8), height = c(1,1) )
>
> But I got this error:
>
> Error in FUN(i, ...) :
>   formal argument "corners" represents multiples specified arguments
>
> Is it possible to combine fuzzy_partition with fuzzy_trapezoid?
>
> Att,
>



More information about the R-help mailing list