Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Aggregate 聚合列名_Aggregate_Columnname - Fatal编程技术网

Aggregate 聚合列名

Aggregate 聚合列名,aggregate,columnname,Aggregate,Columnname,这可能是你们大多数人的基本问题 我使用的是aggregate()函数,它获取一个名为“dupl”的数据帧,根据名为“interval”和“day type”的两列进行聚合,这样做还获取另一列名为“steps”的平均值。 我希望包含方法的列命名为steps_mean。我使用以下代码: {r} aggr试试看 聚合(dupl,by=list(dupl$interval,dupl$daytype),FUN=“平均值”)

这可能是你们大多数人的基本问题

我使用的是aggregate()函数,它获取一个名为“dupl”的数据帧,根据名为“interval”和“day type”的两列进行聚合,这样做还获取另一列名为“steps”的平均值。 我希望包含方法的列命名为steps_mean。我使用以下代码:

{r}
aggr试试看

聚合(dupl,by=list(dupl$interval,dupl$daytype),FUN=“平均值”)