This is the code:
# State with most Zip code
x <- df3 %>% count(state) %>%
arrange(desc(n))
x[1,]
it returns
state n
Texas 1935
My markdown is:
The state which has the most zip code is
x[1,1]
with a total ofx[1,2]
zip codes.
but what I would like is the markdown to say:
The state which has the most zip code is Texas with a total of 1935 zip codes automatically based on my output x.
I tried all sort of combination of tick marks and {{...}}
but to no avails...