R Basics-25 - Coding-Iterations-1 (Hands On) - ClassiCoder
Factorial . Write a function Nfact to find the factorial of the number num passed as arguments using…
Factorial . Write a function Nfact to find the factorial of the number num passed as arguments using…
Statistics Perform the following tasks: 1. Find the median of the vector V passed as function argumen…
Date and Time in R Perform the following tasks: 1. Create a string "25-12-2016" and convert…
Conversion of Variables Perform the following tasks: 1. Create a factor vector v1 using 10 random num…
Conditional operation - which() Perform the following tasks: 1. Identify the position of the values g…
Vector Operations Perform the following tasks: 1. Create a vector X as a sequence of numbers from a t…
Vectors and Matrices Perform the following tasks: 1. Create a vector V with values 1 to 9 2. Create a …
Conditional - If/Else Perform the following tasks: 1. Check each value of the vector V passed as argu…
Factors and Levels Perform the following tasks: 1. Find the factor of the vector V passed as function…
1. FOR LOOP Perform the following tasks: 1. Find the sum of all even numbers in the Vector V (passed a…