0

Am just starting out in R and machine learning. Am working on a hierarchical clustering problem where after getting clusters of attitudinal variables (e.g preference for a certain choice), I want to do target segmentation by combining the cluster information with demographic data ,I did not include in the clustering such as marital status to check how cluster groups behave in married vs non married people. my code is as seen below.

 data %>%
  tabyl(clusters, marital) %>% 
  adorn_totals(c("row", "col")) %>% 
  adorn_percentages("row") %>%
  adorn_pct_formatting(digits = 2) %>%
  adorn_ns()
  Error in adorn_ns(.) : could not find function "adorn_ns"

The problem is the code throws this error, Error in adorn_ns(.) : could not find function "adorn_ns"

I have tried all that I know , but I have not been able to solve this .

Thanks in advance for your help.

  • 1
    It's easier to help you if you include a simple reproducible example: with sample input and desired output that can be used to test and verify possible solutions. – TarJae May 22 '22 at 07:59
  • 1
    I have resolved this by installing the janitor package which was a requirement. Thanks – smartcoder May 23 '22 at 10:09

0 Answers0