# Error occurs when using rowMeans function

**URL:** <https://community.exploratory.io/t/error-occurs-when-using-rowmeans-function/4090>\
**Category:** Questions\
**Created:** [November 13, 2025, 11:22pm UTC](https://community.exploratory.io/t/error-occurs-when-using-rowmeans-function/4090 "2025-11-13T23:22:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takato\_Shiroto](https://community.exploratory.io/user_avatar/community.exploratory.io/takato_shiroto/32/749_2.png) [@Takato\_Shiroto](https://community.exploratory.io/u/Takato_Shiroto)\
**Post date:** [November 13, 2025, 11:22pm UTC](https://community.exploratory.io/t/error-occurs-when-using-rowmeans-function/4090/1 "2025-11-13T23:22:02Z")

</div>

In addition to the rowMeans function, Exploratory has a function called summarize\_row. The summarize\_row function allows you to calculate the average or sum of multiple numeric columns for each row.

The syntax for the summarize\_row function is as follows:

When specifying columns individually:

```auto
summarize_row(across(c(Col1, Col2, Col3)), mean, na.rm = TRUE)

```

When specifying a range of columns:

```auto
summarize_row(across(c(Col1:Col3)), mean, na.rm = TRUE)

```

For more details on how to use the summarize\_row function, please see below.

> **[How to Aggregate Values from Multiple Numeric Columns and Add as a New Column](https://exploratory.io/note/exploratory/How-to-Aggregate-Values-from-Multiple-Numeric-Columns-and-Add-as-a-New-Column-eMl6QSk7)**
>
> Created by Takato Shiroto
