Error in unique.default(x, nmax = nmax) : unique() applies only to vectors in R

0 votes

Hi. I'm new to R. Can anyone tell what does this mean?

Error in unique.default(x, nmax = nmax) : unique() applies only to vectors in R
Oct 30 in Data Analytics by anonymous
• 3,290 points
87 views

1 answer to this question.

0 votes
This error is displayed if you used a list instead of a vector for a unique function.

Use c() function instead of list() if you are creating new r object and try again.
answered Oct 30 by Cherukuri
• 31,840 points

Related Questions In Data Analytics

+5 votes
0 answers
0 votes
2 answers

How to count unique values in R?

You can try this way, as.data.frame(v) %>% count(v) READ MORE

answered Aug 8 in Data Analytics by anonymous
1,719 views
0 votes
1 answer

How to find common elements from multiple vectors in R?

Reduce(intersect, list(a,b,c)) READ MORE

answered Apr 26, 2018 in Data Analytics by DeepCoder786
• 1,720 points
811 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
115 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
159 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
86 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
104 views
0 votes
1 answer

How to filter only those rows with a condition in R?

Write R code as below temp = data ...READ MORE

answered Jul 15 in Data Analytics by anonymous
• 31,840 points
33 views