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

Зміст курсу

TEST R COURSE

TEST R COURSE

1. Basic Syntax and Operations
2. Vectors

bookComments

Assume you wrote a large script, used it in your research, and then had to use it again but with few improvements/changes. You can forget what each line of the code is responsible for. That's why leaving notes in code is a good practice. In programming, we call such notes comments.

A comment is a line/part of a line in the code that is not compiled. To make the interpreter understand, starting from where the code must not be compiled, use the hash # sign. For example, let's leave two comments: one in a separate line, and one right to some calculation:

As you can see, there will be only the result of 11+3 displayed in the console.

Please note that using comments is not compulsory but is considered good practice for clean and understandable code.

Comments can also be used while testing to make R ignore some lines of code without removing them.

Завдання

The code on the right can not be compiled due to an error. You need to use the hash # signs to make the code valid.

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

Як ми можемо покращити це?

Дякуємо за ваш відгук!

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

bookComments

Assume you wrote a large script, used it in your research, and then had to use it again but with few improvements/changes. You can forget what each line of the code is responsible for. That's why leaving notes in code is a good practice. In programming, we call such notes comments.

A comment is a line/part of a line in the code that is not compiled. To make the interpreter understand, starting from where the code must not be compiled, use the hash # sign. For example, let's leave two comments: one in a separate line, and one right to some calculation:

As you can see, there will be only the result of 11+3 displayed in the console.

Please note that using comments is not compulsory but is considered good practice for clean and understandable code.

Comments can also be used while testing to make R ignore some lines of code without removing them.

Завдання

The code on the right can not be compiled due to an error. You need to use the hash # signs to make the code valid.

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

Як ми можемо покращити це?

Дякуємо за ваш відгук!

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

bookComments

Assume you wrote a large script, used it in your research, and then had to use it again but with few improvements/changes. You can forget what each line of the code is responsible for. That's why leaving notes in code is a good practice. In programming, we call such notes comments.

A comment is a line/part of a line in the code that is not compiled. To make the interpreter understand, starting from where the code must not be compiled, use the hash # sign. For example, let's leave two comments: one in a separate line, and one right to some calculation:

As you can see, there will be only the result of 11+3 displayed in the console.

Please note that using comments is not compulsory but is considered good practice for clean and understandable code.

Comments can also be used while testing to make R ignore some lines of code without removing them.

Завдання

The code on the right can not be compiled due to an error. You need to use the hash # signs to make the code valid.

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

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Assume you wrote a large script, used it in your research, and then had to use it again but with few improvements/changes. You can forget what each line of the code is responsible for. That's why leaving notes in code is a good practice. In programming, we call such notes comments.

A comment is a line/part of a line in the code that is not compiled. To make the interpreter understand, starting from where the code must not be compiled, use the hash # sign. For example, let's leave two comments: one in a separate line, and one right to some calculation:

As you can see, there will be only the result of 11+3 displayed in the console.

Please note that using comments is not compulsory but is considered good practice for clean and understandable code.

Comments can also be used while testing to make R ignore some lines of code without removing them.

Завдання

The code on the right can not be compiled due to an error. You need to use the hash # signs to make the code valid.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 1. Розділ 3
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
some-alt