Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Print? | Basic Syntax and Operations
TEST R COURSE
course content

Зміст курсу

TEST R COURSE

TEST R COURSE

1. Basic Syntax and Operations
2. Vectors

Print?

After executing the code, you might notice [1] parts in the output. R is just letting you know that this line begins with the first value in your result. In future sections, you will meet outputs that contain multiple values.

As you remember, there is no need to use a special function to output values in R.

Assume we want to perform a division.

Suppose you want to 'round' the number up to a specific number of digits. In that case, you can use the traditional programming languages function print().

Let's consider the function' structure:

For example, we can round the number from the example above to 3 digits.

As you can see, the result of the expression was rounded to three digits.

Завдання

  1. In the first line, perform a division of 50 by 7.
  2. In the second line, perform a division of 50 by 7, and round the result to 4 digits using the print() function.

Завдання

  1. In the first line, perform a division of 50 by 7.
  2. In the second line, perform a division of 50 by 7, and round the result to 4 digits using the print() function.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 1. Розділ 2
toggle bottom row

Print?

After executing the code, you might notice [1] parts in the output. R is just letting you know that this line begins with the first value in your result. In future sections, you will meet outputs that contain multiple values.

As you remember, there is no need to use a special function to output values in R.

Assume we want to perform a division.

Suppose you want to 'round' the number up to a specific number of digits. In that case, you can use the traditional programming languages function print().

Let's consider the function' structure:

For example, we can round the number from the example above to 3 digits.

As you can see, the result of the expression was rounded to three digits.

Завдання

  1. In the first line, perform a division of 50 by 7.
  2. In the second line, perform a division of 50 by 7, and round the result to 4 digits using the print() function.

Завдання

  1. In the first line, perform a division of 50 by 7.
  2. In the second line, perform a division of 50 by 7, and round the result to 4 digits using the print() function.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 1. Розділ 2
toggle bottom row

Print?

After executing the code, you might notice [1] parts in the output. R is just letting you know that this line begins with the first value in your result. In future sections, you will meet outputs that contain multiple values.

As you remember, there is no need to use a special function to output values in R.

Assume we want to perform a division.

Suppose you want to 'round' the number up to a specific number of digits. In that case, you can use the traditional programming languages function print().

Let's consider the function' structure:

For example, we can round the number from the example above to 3 digits.

As you can see, the result of the expression was rounded to three digits.

Завдання

  1. In the first line, perform a division of 50 by 7.
  2. In the second line, perform a division of 50 by 7, and round the result to 4 digits using the print() function.

Завдання

  1. In the first line, perform a division of 50 by 7.
  2. In the second line, perform a division of 50 by 7, and round the result to 4 digits using the print() function.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

After executing the code, you might notice [1] parts in the output. R is just letting you know that this line begins with the first value in your result. In future sections, you will meet outputs that contain multiple values.

As you remember, there is no need to use a special function to output values in R.

Assume we want to perform a division.

Suppose you want to 'round' the number up to a specific number of digits. In that case, you can use the traditional programming languages function print().

Let's consider the function' structure:

For example, we can round the number from the example above to 3 digits.

As you can see, the result of the expression was rounded to three digits.

Завдання

  1. In the first line, perform a division of 50 by 7.
  2. In the second line, perform a division of 50 by 7, and round the result to 4 digits using the print() function.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 1. Розділ 2
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt