What is the use of With () and By () function in R Programming language?

Category: R LanguageWhat is the use of With () and By () function in R Programming language?
Editor">Editor Staff asked 2 years ago

What is the use of With () and By () function in R Programming language?

1 Answers
Editor">Editor Staff answered 2 years ago

with() function applies an expression to a dataset.
#with(data,expression)
By() function applies a function t each level of a factors.
#by(data,factorlist,function)