The tilde expression is not working on my RStudio! I am using a windows 10 OS.
Update : After looking more carefully(thanks to Dason) It seems the "~" is pointing to "user/Documents/" rather then "user/". is there any work around?
Any help?
You can use the tilde operator (~) in R to separate the left hand side of an equation from the right hand side. This operator is most commonly used with the lm() function in R, which is used to fit linear regression models. The variable name on the left side of the tilde operator (y) represents the response variable.
Description. Tilde is used to separate the left- and right-hand sides in a model formula.
The home directory in Windows R is set using the environment variable R_USER
Set this using Windows (search from the Start Menu for "environment variable"). Whatever you set this to will become what R uses for ~
. I have mine set to C:\Users\trehman\R
.
Here is how mine looks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With