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,450 points
14,019 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
• 33,030 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
6,639 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 27, 2018 in Data Analytics by DeepCoder786
• 1,720 points
5,872 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
2,268 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
1,963 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, 2020 by Gitika 1,203 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
1,400 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
• 33,030 points
858 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP