The tibble I get from another code looked like this (mean in output of the tibble but not saved in dataframe):
fhprofs %>%
select (s1abc, s1cde, s1efg ) %>%
mutate(
ssco_strmean=(s1abc+ s1cde,+s1efg)/3
)
1 5 [trifft voll und ganz zu] 5 [trifft voll und ganz zu] 5 [trifft voll und ganz zu] 5
2 5 [trifft voll und ganz zu] 5 [trifft voll und ganz zu] 5 [trifft voll und ganz zu] 5
3 4 [trifft voll und ganz zu] 5 [trifft voll und ganz zu] 5 [trifft voll und ganz zu] 4.67
4 5 [trifft voll und ganz zu] 1 [trifft voll und ganz zu] 5 [trifft voll und ganz zu] 3.67
I think it will indeed be easier if you provide a sample dataset we can work with. Take a look at the post below on how to build a reprex and share code and data efficiently. A reprex consists of the minimal code and data needed to recreate the issue/question you're having. You can find instructions how to build and share one here:
Okay, so this is the code for an example dataframe and the mean calculation, that did not work. Only problem now, I also get additional error messages about the type of data. What could be wrong about the data.frame now?
Error in mutate():
! Problem while computing ssco_meanall = rowMeans(select(s1abc, s1cde, s1efg, na.rm = TRUE)).
Caused by error in UseMethod():
! no applicable method for 'select' applied to an object of class "c('double', 'numeric')"
Backtrace: