How does paste function work in R

0 votes
How does paste function work in R?
Oct 15, 2019 in Data Analytics by ch
• 3,450 points
238 views

1 answer to this question.

0 votes
Paste function concatenates vectors together.

Syntax: paste(v1,v2,sep = " ")

> paste(c(1:5),c(6:10), sep = "/")
[1] "1/6"  "2/7"  "3/8"  "4/9"  "5/10"
answered Oct 28, 2019 by Cherukuri
• 32,890 points

Related Questions In Data Analytics

0 votes
1 answer

How to write a custom function which will replace all the missing values in a vector with the mean of values in R?

Consider this vector: a<-c(1,2,3,NA,4,5,NA,NA) Write the function to impute ...READ MORE

answered Jul 4, 2018 in Data Analytics by CodingByHeart77
• 3,720 points
1,461 views
+1 vote
1 answer

How can I use which() function in R ?

which() function determines the position of elements ...READ MORE

answered Sep 24, 2018 in Data Analytics by Daisy
• 8,110 points
5,547 views
0 votes
1 answer

What does the sink function do in R?

sink diverts R output to a connection ...READ MORE

answered May 24, 2019 in Data Analytics by Chandu
252 views
0 votes
1 answer

How to create a function in R?

Hi@akhtar, We can create user-defined functions in R. ...READ MORE

answered Oct 29, 2020 in Data Analytics by MD
• 94,990 points
32 views
0 votes
1 answer

Big Data transformations with R

Dear Koushik, Hope you are doing great. You can ...READ MORE

answered Dec 17, 2017 in Data Analytics by Sudhir
• 1,610 points
239 views
0 votes
2 answers

Transforming a key/value string into distinct rows in R

We would start off by loading the ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,620 points
282 views
0 votes
1 answer

Finding frequency of observations in R

You can use the "dplyr" package to ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,620 points
2,761 views
0 votes
1 answer

Left Join and Right Join using "dplyr"

The below is the code to perform ...READ MORE

answered Mar 26, 2018 in Data Analytics by Bharani
• 4,620 points
320 views
0 votes
1 answer

How to make points transparent using plot function in R?

There is no attribute to set the ...READ MORE

answered Oct 14, 2019 in Data Analytics by Cherukuri
• 32,890 points
379 views
+1 vote
2 answers

How to sort a data frame by columns in R?

You can use dplyr function arrange() like ...READ MORE

answered Aug 21, 2019 in Data Analytics by anonymous
• 32,890 points
539 views