Using with() function to simplify your work in R
We provide effective and economically affordable training courses for R and Python, click here for more details and course registration ! with() function in R provides an alternative and often easier way to deal with data management and analysis. Say we have a data frame ‘grade’, and want to calculate the summary statistics of variable ‘Math’ and correlation between variables ‘Math’ and ‘Physics’. In the normal way, we can write the code as follows: If Read more…