Exercise - 8. a) How to generate random names in R ?
Автор: Anand S
Загружено: 2021-02-12
Просмотров: 801
In this tutorial, we will be solving 3 exercise problems on Strings. We will also understand how to generate random names in R.
We will try to solve the below 3 problem statements :
1) Write a function to calculate the number of occurences of a particular string in a list or array of string:
st = c("hi", "Hi", "hello", "how", "HI", "Hello", "abc",
"wxyz", "hi")
2) Generate random names of 10 people with First Name and Last Name
First Name (max 5 char) & Last Name (max 10 characters)
3) Generate random names of people that are genuine names
Timestamps:
0:00 Introduction
1:07 import library stringr
1:20 How to count number of occurrences of a word in R ?
1:54 How to count number of occurrences of a word in R by overcoming case sensitivity ?
2:30 Convert a string to lower case in R
3:50 Create a case insensitive function in R to count occurrences of a particular word
8:10 How to generate random strings in R ?
8:51 randomStrings function in R
9:18 Parameters of randomStrings function in R
12:00 How to capitalize the names in R ?
13:05 paste function in R
13:44 for loop in R
14:58 How to randomly generate proper names in R ?
15:48 randomNames function in R
This tutorial is part of the below playlist "Excel in R and Python":
https://www.youtube.com/watch?v=Tplgk...
This tutorial is also part of the playlist "Coding Challenge" which tests your coding skills in R and Python:
• Exercise - 1. Vectors
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: