ycliper

Популярное

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

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

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

Топ запросов

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

How to Apply a Function to Each Element of a Matrix in R (2 Examples) | Pre- & User-Defined Command

statistics globe

statisticsglobe.com

statistical programming

r programming

statistics

r programming language

r statistics

rstudio

r language

r tutorial

learn r

r code

r programming tutorial

Apply a Function to Each Element of a Matrix

command a function to all matrix elements

user-defined function

Автор: Statistics Globe

Загружено: 2021-11-03

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

Описание: How to apply a function or command to all matrix elements in the R programming language. More details: https://statisticsglobe.com/apply-fun...
R code of this video:

mat <- matrix(1:15, nrow = 5) # Create example data
mat # Print example data

mat_new1 <- sqrt(mat) # Apply function to each element
mat_new1 # Print updated data

my_fun <- function(x) { # Create own function
x * 3 + 10
}

mat_new2 <- apply(mat, c(1, 2), my_fun) # Apply own function to each element
mat_new2 # Print updated data

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

Music by bensound.com

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
How to Apply a Function to Each Element of a Matrix in R (2 Examples) | Pre- & User-Defined Command

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

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

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

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

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

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

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



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



Контакты для правообладателей: [email protected]