Python Foundation

+91-7982108418            
Table of Contents

R- Vector #

  1. 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.
  2. Write a R program to add two vectors of integers type and length 3.
  3. Write a R program to append value to a given empty vector.
  4. Write a R program to multiply two vectors of integers type and length 3.
  5. Write a R program to divide two vectors of integers type and length 3.
  6. Write a R program to find Sum, Mean and Product of a Vector.
  7. Write a R program to find Sum, Mean and Product of a Vector, ignore element like NA or NaN.
  8. Write a R program to find the minimum and the maximum of a Vector.
  9. Write a R program to sort a Vector in ascending and descending order.
  10. Write a R program to test whether a given vector contains a specified element.
  11. Write a R program to count the specific value in a given vector.
  12. Write a R program to access the last value in a given vector.
  13. Write a R program to find second highest value in a given vector.
  14. Write a R program to find nth highest value in a given vector.
  15. Write a R program to find common elements from multiple vectors.
  16. Write a R program to convert given dataframe column(s) to a vector.
  17. Write a R program to extract every nth element of a given vector.
  18. Write a R program to list the distinct values in a vector from a given vector.
  19. Write a R program to find the elements of a given vector that are not in another given vector.
  20. Write a R program to reverse the order of given vector.
  21. Write a R program to concatenate a vector.
  22. Write a R program to count number of values in a range in a given vector.
  23. Write a R program to convert two columns of a data frame to a named vector.
  24. Write a R program to create a vector and find the length and the dimension of the vector.
  25. Write a R program to combines two given vectors by columns, rows.
  26. 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.
  27. Write a R program to add 3 to each element in a given vector. Print the original and new vector.
  28. Write a R program to create a vector using : operator and seq() function.

Powered by BetterDocs

Contact Us
close slider

error: Content is protected !!