Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

head & tail Functions in R (6 Examples) | Data Frame, Vector & List Object | Extract First/Last Rows

Автор: Statistics Globe

Загружено: 2023-02-05

Просмотров: 1303

Описание:

How to return the first or last part of a data object using the head and tail functions in the R programming language. More details: https://statisticsglobe.com/head-tail...
R code of this video:

data <- data.frame(x1 = letters[1:10], # Create example data
x2 = 11:20)
data # Print example data

head(data) # Return head of data frame

head(data, 4) # Return first four rows of data frame

tail(data) # Return tail of data frame

tail(data, 4) # Return last four rows of data frame

vec <- 1:10 # Create example vector
vec # Print example vector

head(vec) # Apply head to vector object

tail(vec) # Apply tail to vector object

my_list <- list(1, # Create example list
5:9,
letters[6:1],
"xxx")
my_list # Print example list

head(my_list, 2) # Apply head to list object

tail(my_list, 2) # Apply tail to list object

Follow me on Social Media:
Facebook – Statistics Globe Page:   / statisticsglobecom  
Facebook – R Programming Group for Discussions & Questions:   / statisticsglobe  
Facebook – Python Programming Group for Discussions & Questions:   / statisticsglobepython  
LinkedIn – Statistics Globe Page:   / statisticsglobe  
LinkedIn – R Programming Group for Discussions & Questions:   / 12555223  
LinkedIn – Python Programming Group for Discussions & Questions:   / 12673534  
Twitter:   / joachimschork  

Music by bensound.com

head & tail Functions in R (6 Examples) | Data Frame, Vector & List Object | Extract First/Last Rows

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Replicate Vector in Matrix in R (3 Examples) | How to Duplicate by Row & Column | t() & replicate()

Replicate Vector in Matrix in R (3 Examples) | How to Duplicate by Row & Column | t() & replicate()

Imputation vs. Listwise Deletion (Example in R) | Handle Missing Values | Substitute & Complete Data

Imputation vs. Listwise Deletion (Example in R) | Handle Missing Values | Substitute & Complete Data

How to Apply PCA before K-means Clustering in R Programming (Example) | Principal Component Analysis

How to Apply PCA before K-means Clustering in R Programming (Example) | Principal Component Analysis

Я в опасности

Я в опасности

Data Frame in R

Data Frame in R

Приём в SAS для клинической практики: правильное округление значащих цифр (пошаговая инструкция)

Приём в SAS для клинической практики: правильное округление значащих цифр (пошаговая инструкция)

Positron IDE for R & Python | How to Install & Use | Better than RStudio? | Ft. @milos-makes-maps

Positron IDE for R & Python | How to Install & Use | Better than RStudio? | Ft. @milos-makes-maps

Create Coach-Friendly Athlete Testing Figures in Rstudio (step by step walk through)

Create Coach-Friendly Athlete Testing Figures in Rstudio (step by step walk through)

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

Код работает в 100 раз медленнее из-за ложного разделения ресурсов.

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

How to Create a Tree Height Map in R | Example Ft @milos-makes-maps | Visualize Global Forest Canopy

How to Create a Tree Height Map in R | Example Ft @milos-makes-maps | Visualize Global Forest Canopy

How to Escape Google Surveillance: Replace Every Service in 2 Weeks

How to Escape Google Surveillance: Replace Every Service in 2 Weeks

Complete Data Project in R (Example) | Import, Manipulation, Graphics, Statistical Analysis & PCA

Complete Data Project in R (Example) | Import, Manipulation, Graphics, Statistical Analysis & PCA

Операции со строками и столбцами с использованием dplyr в R | Выбор, изменение, переименование, у...

Операции со строками и столбцами с использованием dplyr в R | Выбор, изменение, переименование, у...

Microsoft begs for mercy

Microsoft begs for mercy

Can You Name What You're Looking For?

Can You Name What You're Looking For?

Множественная линейная регрессия в R с использованием Julius AI (пример)

Множественная линейная регрессия в R с использованием Julius AI (пример)

How to Convert a Character to Numeric in R | String Vector & Data Frame Column | as.numeric Function

How to Convert a Character to Numeric in R | String Vector & Data Frame Column | as.numeric Function

Analysis of Variance (ANOVA) in R | Tukey's HSD Test, Visualization, Assumption Check, Normality

Analysis of Variance (ANOVA) in R | Tukey's HSD Test, Visualization, Assumption Check, Normality

Draw PCA Biplot & Loading Plot in R (Example) | Apply & Visualize Principal Component Analysis

Draw PCA Biplot & Loading Plot in R (Example) | Apply & Visualize Principal Component Analysis

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com