use of tilde in R

0 votes
When is ~ used in R? Why is y~x used instead of x,y in some ploting functions?
Aug 7, 2019 in Data Analytics by lohith
232 views

1 answer to this question.

0 votes
One use of ~ is to mention x,y dimensions for plots.

Such as boxplot(y~x, [attr] = [val].....)

Where y, x are fields to plot in y and x-axis.

Some of the functions in R take values as (y,x), that is when ~ is used. In most of the functions (x,y) form is followed.
answered Aug 7, 2019 by anonymous
• 33,010 points

Related Questions In Data Analytics

0 votes
1 answer

Use of $ and %% operators in R

According to help('percent in percent'), percent in ...READ MORE

answered Jun 23 in Data Analytics by Sohail
• 2,960 points
26 views
0 votes
0 answers

Use of ggplot() within another function in R

Using the ggplot2 package, I'm attempting to ...READ MORE

Jun 22 in Data Analytics by avinash
• 940 points

closed Jun 22 by avinash 12 views
0 votes
1 answer

Finding frequency of observations in R

You can use the "dplyr" package to ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,660 points
4,287 views
0 votes
1 answer
0 votes
1 answer

By using dpylr package sum of multiple columns

Basically here we are making an equation ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
1,557 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
961 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

answered Apr 6, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 9, 2020 by Gitika 435 views
0 votes
1 answer

How to create a list of Data frames?

Basically all we have to do is ...READ MORE

answered Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
615 views
+2 votes
2 answers

Change data type of one column in R

You can change data types using as.* ...READ MORE

answered Aug 16, 2019 in Data Analytics by anonymous
• 33,010 points
51,282 views
+1 vote
3 answers

How to change the value of a variable using R programming in a data frame?

Try this: df$symbol <- as.character(df$symbol) df$symbol[df$sym ...READ MORE

answered Jan 11, 2019 in Data Analytics by Tyrion anex
• 8,690 points
32,103 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP