我正在测试R中的一个简单函数,该函数可以将时间序列对象转换为数据帧。然而,代码在函数外部运行良好,但在函数内部,它在对象中给出了错误。>fx<-function(AMts) { return(x)>fx() 我希望在我的环境中有data.frame x,但我得到了Errorin as.data.frame(AMts) : argument "AMts" is missing, with no default
据我所知,我需要使用.data格式的数据。mutate(file = "mix.data") %>% # add the name of our file
mutate(filenumber = as.numeric(str_matchhttps://www.kaggle.com/rtatman/tutorial-sentiment-analysis-in-r/notebook 所以在运行我的代码之前,你能告诉我需要的代码是什么吗?