I just stumbled across a tool for syntax highlighting R code on web pages. It also sticks in hyperlinks to the help pages for keywords. This will make blog posting code easier!
http://www.inside-r.org/pretty-r/tool
Created by Pretty R at inside-R.org
http://www.inside-r.org/pretty-r/tool
totalrecords <- nrow(mydata) trainfraction = 0.7 trainrecords = as.integer(totalrecords * trainfraction) allrows <- 1:totalrecords trainrows <- sample(totalrecords,trainrecords) testrows <- allrows[-trainrows] #check length(trainrows) length(testrows) #then build model, something like... model <- lm(theFormula, data=mydata[trainrows,])
This comment has been removed by a blog administrator.
ReplyDeleteStreet address Affirmation having IQ Office environment only two. https://imgur.com/a/KZdNTrW http://rexalc9exk.dip.jp https://imgur.com/a/BirNOqf https://imgur.com/a/7hpKg95 https://imgur.com/a/ewBfqyl https://imgur.com/a/0FrNL6o https://imgur.com/a/dLz8ysL
ReplyDelete