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, 2019 in Data Analytics by anonymous
• 3,380 points
2,173 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, 2019 by Cherukuri
• 32,460 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, 2019 in Data Analytics by anonymous
3,675 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
2,296 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
699 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
371 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

edited Jun 9 by Gitika 156 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
228 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, 2019 in Data Analytics by anonymous
• 32,460 points
60 views
+1 vote
1 answer