Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
dplyr average columns
ohforf
Programming language:
Whatever
2021-08-28 20:36:24
0
Q:
dplyr average columns
user18123
Code:
Whatever
2021-07-23 10:15:50
library(dplyr) mutate(df, IVMean = rowMeans(select(., starts_with("IV")), na.rm = TRUE))
0
Tags
columns
age
Related
rearange DataFrame swap columsn and rows
select subset of columns from dataframe
show which columns in dataframe have NA
primeng table reorder columns
df reanme columns
pyspark group by and average in dataframes
how to fill nas on a dataframe with median
reorder columns in r
New to Communities?
Join the community