Course Content

Course Content


  • Using c() Function. To create a vector, we use the c() function: Code: > vec <- c(1,2,3,4,5) #creates a vector named vec.
  • The assign() method is used. The assign() method is another technique to make a vector.
  • digit code operator is being used. The: operator is a simple way to create integer vectors. Code:

Concatenating strings can be done with the "+" operator. The function converts data into a string format.

In R, the + operator is used to combine vectors. You must consider the recycling rule when adding vectors. There is no problem if the two vectors are of identical length. If the lengths of the vectors differ, the lesser one is repeated until it equals the length of the longer one.

Use the paste() function in R programming to concatenate strings. The paste() function's syntax for concatenating two or more strings. comma-separated input strings

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere