Loops using R programming

preview_player
Показать описание
Loops are an important way to execute code in R programming that repeats itself. If you're interested in data analysis using R programming then this video about loops will be of interest to you. You'll be able to use loops to generate important insights from your data.
Рекомендации по теме
Комментарии
Автор

More loops and about how to make your own functions, please. Would be so useful.

Maeggoel
Автор

Most of these tasks you can do without a loop. Remember: R operates on vectors. For example, to print the first five names, use `starwars$names[1:5]`. This does exactly the same as the loop.
`tallness <- starwars$height[1:5]` creates the vector tallness with 5 elements. Then, `paste("The height of", starwars$name[1:5], "is", tallness, "meters")` produces the nicely formatted output. To replace `next`, use `filter` (tidyverse is loaded). The only element that may need a loop is `break`.

gunthermaier
Автор

Thanks for the wonderful video! Please can you do a video on how to learn R in 2024 for absolute beginners. And how can one use chatgpt along with r for data analysis and visualization. Thanks.

moviezone
Автор

Thank you for teaching in such a clear and exciting way. I understood loops after months of trying

smaug
Автор

Always a pleasure to see your work. Thanks again.

Shawn-gmcf
Автор

So clearly explained. Very useful, thank you!

SallyMacGarry
Автор

Love the videos and your explanations, always don't like the sound effects. Noy sure you need them at all.

krankbt
Автор

Hmm, very NICE and very well presented. Thanks a lot.

richieeniks
Автор

love your videos. Keep up the good work

patrickrankin
Автор

I could not download the pdf. Also, I could not get the cat() function to work.

louiseweschler
Автор

what is "\n " doing in the last example?

lesliemariamungarroreyes
Автор

why did the first example run along integer [i] and the second on x?

elanalottner
Автор

How long before we get that PURRR tutorial?

brittnyfreeman
Автор

Can't you use glue instead of cat? It is more "tidyversy".

haraldurkarlsson
Автор

A few less sound effects. (Don’t mind a couple but too many become annoying)

oddsratio