How to add special characters to a list?

0 votes
How to add special characters to a list? like ($ . \ /)
Oct 10 in Data Analytics by ch
• 3,290 points
29 views

1 answer to this question.

0 votes
@ch,

You can add $. , / using regular list syntax. But you cannot add \ to a list using regular syntax.

> list("$",".",",","/","~")
[[1]]
[1] "$"

[[2]]
[1] "."

[[3]]
[1] ","

[[4]]
[1] "/"

[[5]]
[1] "~"

you can add \\ but not \.

> list("\\")
[[1]]
[1] "\\"

> list("\")
+ ""
+ ""
Error: unexpected string constant in:
"""
""
answered Oct 14 by anonymous
• 32,260 points

Related Questions In Data Analytics

0 votes
1 answer

How to change mulitiple characters in a column to a date

Firstly we have to set dataf variable ...READ MORE

answered Apr 3, 2018 in Data Analytics by DeepCoder786
• 1,720 points
51 views
+1 vote
1 answer

How to convert a list of vectors with various length into a Data.Frame?

We can easily use this command as.data.frame(lapply(d1, "length< ...READ MORE

answered Apr 4, 2018 in Data Analytics by DeepCoder786
• 1,720 points
139 views
0 votes
1 answer
0 votes
1 answer

How to join a list of data frames using map()

You can use reduce set.seed(24) r1 <- map(c(5, 10, ...READ MORE

answered Apr 11, 2018 in Data Analytics by kappa3010
• 2,070 points
63 views
0 votes
1 answer

By using dpylr package sum of multiple columns

Basically here we are making an equation ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
128 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
184 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

answered Apr 6, 2018 in Data Analytics by DeepCoder786
• 1,720 points
91 views
0 votes
1 answer

How to create a list of Data frames?

Basically all we have to do is ...READ MORE

answered Apr 9, 2018 in Data Analytics by DeepCoder786
• 1,720 points
116 views
0 votes
1 answer

How to add elements into a list in R?

hey, Add elements into list as below. list = ...READ MORE

answered Sep 30 in Data Analytics by anonymous
• 32,260 points
27 views
0 votes
1 answer

How to add create a box plot with categorical columns?

One way is to convert to factor ...READ MORE

answered Jul 4 in Data Analytics by anonymous
• 32,260 points
80 views