Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: expecting a one sided formula, a function, or a function name. #30

Open
him1532 opened this issue Sep 2, 2019 · 1 comment
Open

Comments

@him1532
Copy link

him1532 commented Sep 2, 2019

I have a data that looks like this with 10 rows

ld kt ts ss ss1 ss2 ss3
1 5 1 165 88 54 57 110
2 5 2 167 91 65 58 110
3 6 1 183 107 50 69 110

if I do following

data%>%filter(kt==1)%>%rename(group=스) %>% mutate_at(vars(-group),scales::rescale())

I get an error

Error: expecting a one sided formula, a function, or a function name.

If I don't do "scales::rescale()" I get an error saying

Error in check_dot_cols(.vars, .cols) : object 'rescale' not found

I've tried

data%>%filter(kt==1)%>%rename(group=스) %>% mutate_each(funs(rescale),-group)

and I get

Error in is_character(x) : object 'group' not found

can you help?

@him1532
Copy link
Author

him1532 commented Sep 2, 2019

when I tried the following all the values are 0.5

data_M=data%>%filter(kt==1)%>%rename(group=스) %>% mutate_at(vars(-group),scales::rescale)

one other question I have is how do I use non english font?
I've tried following and it did not display the text correctly.

ggradar(data_M)+theme(text = element_text(size=8,family = "YDIYGO320"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant