我想写一个函数,它返回一个数据主题的特定属性,如下所示
dem <- function(sale, attToCall = "year" ){
return(sale$attToCall)
}
aa <- data.frame("month" = sample(1:12, 10),"year" = sample(1990:2016, 10))
dem(aa, attToCall = "year")
不起作用,任何人都有解决方案吗?
答案 0 :(得分:0)
protected void btnSearch_Click(object sender, EventArgs e)
{
Populate();
}
protected void tbSearch_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
btnSearch_Click(null, null);
}
[1] 2012 2004 2010 2001 1995 2002 2002 2005 2009 1997