我正在尝试找到一种在数据帧内进行搜索的方法,以返回多个条件的列和行引用。Appliance=c("Radio", "Laptop", "TV", "Fridge"), ThisYear=c(5,25,5,8), LastYear=c(6,20,5,8))
#code to find whichrow column TV is in which correctly giv
我试图返回一个数据集,该数据集将第一行作为标题行返回(这是有效的),并根据列标题从数据中筛选出整个列。UseHeaderRow = true,
// Gets or sets a callback to determine which row is the headerif header == "string" filter
我试图使用filter函数从2列中进行选择,只选择重复的值。=QUERY(G2:I, "select G, AVG(I) where G is not null group by G")现在,我想要对这个查询,选择只有当我的名字是重复3次或更多。我用这个查询尝试了很多东西,所以,我是罪有应得。我使用仪表