获取对象未找到错误,但这不应该声明吗?

时间:2019-12-05 22:44:51

标签: r object

试图解决一个问题,即我正在根据给定的数据设置两个模型,但是当我尝试这样做时,会抛出错误func main() { args := "-n 30000 127.0.0.1" cmd := exec.Command("ping", strings.Split(args, " ")...) output, _ := cmd.StdoutPipe() cmd.Start() scanner := bufio.NewScanner(output) for scanner.Scan() { m := scanner.Text() matchPackets, _ := regexp.MatchString("Packets", m) matchMinimum, _ := regexp.MatchString("Minimum", m) if matchPackets { fmt.Println("Ping statistics for 127.0.0.1") fmt.Println(m) } if matchMinimum { fmt.Println("Approximate round trip times in milli-seconds:") fmt.Println(m) } } cmd.Wait() } ,这是为什么发生的,我该如何解决呢? R编码新手

代码

Error in eval(predvars, data, env) : object 'TimeSec' not found

数据

X<-read.csv("https://omega0.xyz/omega8008/ex4TLg.txt",head=T)
posterior1 <- MCMCregress(TimeSec~1, B0 = 1, data=X,marginal.likelihood="Chib95",mcmc = 100000)
plot(posterior1)
raftery.diag(posterior1)
summary(posterior1)



posterior2 <- MCMCregress(TimeSec~0+sqrt(LengthMt/GravityA),B0 = 1, data=X,marginal.likelihood="Chib95",mcmc = 100000)

0 个答案:

没有答案