Читать книгу The Big R-Book - Philippe J. S. De Brouwer - Страница 150

4.6.1 Built-in Functions

Оглавление

Right after starting, R some functions are available. We call these the “built-in functions.” Some examples are:

 demo(): shows some of the capabilities of R

demo()

 q(): quits R

q()

 data(): shows the datasets available

data()

 help(): shows help

help()

 ls(): shows variables

ls()

 c(): creates a vector

c()

 seq(): creates a sequence

seq()

 mean(): calculates the mean

mean()

 max(): returns the maximum

max()

 sum(): returns the sum

sum()

 paste(): concatenates vector elements

paste()

The Big R-Book

Подняться наверх