0

So what I've bee trying to do here is to get the unique values of all the columns,

 i = 1
for (i in i : ncol(usd_empatt_dataset))
{
  cat(names(usd_empatt_dataset[i])," has ", colSums(is.na(usd_empatt_dataset[i])),"\n")
}

The code executes fine.

But i get the following error

Error in print.default(names(usd_empatt_dataset[i]), " has ", unique(usd_empatt_dataset[3]),  : 
  invalid 'digits' argument
In addition: Warning message:
In print.default(names(usd_empatt_dataset[i]), " has ", unique(usd_empatt_dataset[3]),  :
  NAs introduced by coercion

Kindly share some fix and knowledge on the same. Thanks in Advance :)

zx8754
  • 52,746
  • 12
  • 114
  • 209
Shhiv
  • 11
  • 4

0 Answers0