For example, we type mat then the R studio predicts as follows:
matrix(data, nrow = rows, ncol = cols)
How to define my function so that the R studio can predict its variables ?
If I define my funtion foo(x,y) as an additon x+y and export by #'@export in my package then R studio can not predict its variable names x,y but only its function name foo().
What I wanted was something similar to that stated here: How to let R predict user input That is before I finish typing the column name, R has started predicting my input.
Thank you for the answer of @piece !! I can do it
