Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/77.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
Re:如何使用R计算与具有相同字符的另一列相对应的列的第90个百分位数_R_Data Cleaning - Fatal编程技术网

Re:如何使用R计算与具有相同字符的另一列相对应的列的第90个百分位数

Re:如何使用R计算与具有相同字符的另一列相对应的列的第90个百分位数,r,data-cleaning,R,Data Cleaning,但它会产生如下错误: aggregate(df$Time, by=list(Name=df$Name), FUN=function(x) quantile(x, probs =0.9)) 请提供帮助。df也是R中的一个内部函数,因此应避免使用data.frame名称。尝试调用对象x的DF,然后在aggregate内部使用DF。。。 aggregate(df$Time, by=list(Name=df$Name), FUN=function(x) quantile(x, probs =0.9))

但它会产生如下错误:

aggregate(df$Time, by=list(Name=df$Name), FUN=function(x) quantile(x, probs =0.9))

请提供帮助。

df
也是
R
中的一个内部函数,因此应避免使用data.frame名称。尝试调用对象
x
DF,然后在
aggregate
内部使用
DF
。。。
aggregate(df$Time, by=list(Name=df$Name), FUN=function(x) quantile(x, probs =0.9))
Error in df$Time : object of type 'closure' is not subsettable