Thanks, Sarah, for response. But you showed me an example with fuzzy_variable. I'd like to use fuzzy_partition. I also tried:
> teste = fuzzy_partition(varnames = c('a', 'b'), FUN = fuzzy_trapezoid, > corners = c(1,2,3,4), height = c(1,1) ) But the trapezoids 'a' and 'b' were overlap. Is there a way to construct two separeted trapezoids with fuzzy_partitions? 2016-08-02 12:51 GMT-03:00 Sarah Goslee <sarah.gos...@gmail.com>: > 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.stil...@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, >> -- Arthur Rodrigues Stilben Geoinformática - LENEP (22) 2765-6555 ______________________________________________ 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.