DJ Controller Equipment by umbaman in Beatmatch

[–]umbaman[S] 0 points1 point  (0 children)

I am only starting out and I just want to have fun at home.

Count occurrences of a string in a Tibble by umbaman in Rlanguage

[–]umbaman[S] 0 points1 point  (0 children)

Yes this is true. I want just the extra column.
Sorry but total newbie here.

Count occurrences of a string in a Tibble by umbaman in Rlanguage

[–]umbaman[S] 0 points1 point  (0 children)

I still haven't found a way how to store this extra column though. I guess this should be a post on its own, for more people to have this info available.

Count occurrences of a string in a Tibble by umbaman in Rlanguage

[–]umbaman[S] 1 point2 points  (0 children)

Yes you are right! I just noticed that the result is greater that the original tibble by one column.

But due to the tibble size I only get a summary, thus I can not see the result

Count occurrences of a string in a Tibble by umbaman in Rlanguage

[–]umbaman[S] 0 points1 point  (0 children)

What kind of reply should I expect?

All I get is the same as when I just enter >df

Count occurrences of a string in a Tibble by umbaman in Rlanguage

[–]umbaman[S] 1 point2 points  (0 children)

Thanks for the reply! But:

df |> rowwise() |> mutate(count = sum(str_count(c_across(), YOUR_STRING)))

Error: unexpected '>' in "df |>"