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 6 in Data Analytics by lohith
26 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 6 by anonymous
• 28,040 points

Related Questions In Data Analytics

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,550 points
150 views
0 votes
1 answer
0 votes
2 answers

How to use group by for multiple columns in dplyr, using string vector input in R?

data = data.frame(   zzz11def = sample(LETTERS[1:3], 100, replace=TRUE),   zbc123qws1 ...READ MORE

answered Aug 5 in Data Analytics by anonymous
3,151 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
105 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
134 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
78 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
84 views
0 votes
2 answers

Change data type of one column in R

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

answered Aug 16 in Data Analytics by anonymous
• 28,040 points
101 views
0 votes
2 answers