I need to know how to count simply the number of values among several columns row-wise. It's not about counting certain strings or numbers, it's just about the number of values not being NA in specific columns.
I dont know if this would be the right way to get the desired outcome. If yes, what would I have to insert into the mutate() brackets?
As is typical for R and the tidyverse, calling ungroup on a dataframe but not assigning the result to anywhere, means the result is ephemeral, ABC01 would remain grouped.
Best practice for assignment is to use <-
you just solved my grouped data problem. I am thankful to you just as I am to smichal. Unfortunately I can't choose two solutions here - I really would love to.
I have also changed the title of the thread because with the grouped data issue another question has come in at the midway point.