Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Understanding Lists | Section
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
Essential R Programming for Absolute Beginners - 1768563985826

bookUnderstanding Lists

Note
Definition

A list is a flexible data type that, unlike a vector, can store elements of different types in a single object.

Creating List

To create a list, use the list() function and pass the values you want to store as arguments. You can even store a text string, a number, and a logical value together.

Example

1
list("Text", 42, TRUE)
copy

The structure of the list output differs from that of a vector, since each element is displayed with its index in double brackets.

Завдання

Swipe to start coding

  1. Create a list named info with the information on the current chapter and course: 'R Introduction', 6 (section), 1 (chapter in the section), 41 (chapter overall).
  2. Output the value of this list.

Рішення

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

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

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

Секція 1. Розділ 41
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookUnderstanding Lists

Свайпніть щоб показати меню

Note
Definition

A list is a flexible data type that, unlike a vector, can store elements of different types in a single object.

Creating List

To create a list, use the list() function and pass the values you want to store as arguments. You can even store a text string, a number, and a logical value together.

Example

1
list("Text", 42, TRUE)
copy

The structure of the list output differs from that of a vector, since each element is displayed with its index in double brackets.

Завдання

Swipe to start coding

  1. Create a list named info with the information on the current chapter and course: 'R Introduction', 6 (section), 1 (chapter in the section), 41 (chapter overall).
  2. Output the value of this list.

Рішення

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

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

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

Секція 1. Розділ 41
single

single

some-alt