Table of Contents

## **R- Vector** #

- Write a R program to create a vector of a specified type and length. Create vector of numeric, complex, logical and character types of length 6.
- Write a R program to add two vectors of integers type and length 3.
- Write a R program to append value to a given empty vector.
- Write a R program to multiply two vectors of integers type and length 3.
- Write a R program to divide two vectors of integers type and length 3.
- Write a R program to find Sum, Mean and Product of a Vector.
- Write a R program to find Sum, Mean and Product of a Vector, ignore element like NA or NaN.
- Write a R program to find the minimum and the maximum of a Vector.
- Write a R program to sort a Vector in ascending and descending order.
- Write a R program to test whether a given vector contains a specified element.
- Write a R program to count the specific value in a given vector.
- Write a R program to access the last value in a given vector.
- Write a R program to find second highest value in a given vector.
- Write a R program to find nth highest value in a given vector.
- Write a R program to find common elements from multiple vectors.
- Write a R program to convert given dataframe column(s) to a vector.
- Write a R program to extract every nth element of a given vector.
- Write a R program to list the distinct values in a vector from a given vector.
- Write a R program to find the elements of a given vector that are not in another given vector.
- Write a R program to reverse the order of given vector.
- Write a R program to concatenate a vector.
- Write a R program to count number of values in a range in a given vector.
- Write a R program to convert two columns of a data frame to a named vector.
- Write a R program to create a vector and find the length and the dimension of the vector.
- Write a R program to combines two given vectors by columns, rows.
- Write a R program to test whether the value of the element of a given vector greater than 10 or not. Return TRUE or FALSE.
- Write a R program to add 3 to each element in a given vector. Print the original and new vector.
- Write a R program to create a vector using : operator and seq() function.