Demo entry 6660037

R code


Submitted by anonymous on Nov 13, 2017 at 16:27
Language: RConsole. Code size: 387 Bytes.

# Data entry
scores <- read.csv("F:/xc/Documents/3.1/Regression Analysis/project/3131.csv")
scores <- scores[, -1]
colnames(scores) <- c("Score", "gender", "Age", "Height", "Weight", "Fat", "R_Rate", "A_Rate", "Sleep", "Exercise")
scores <- data.frame(Score, Gender = c(rep(1,49), rep(0,50)), Age, Height, Weight, Fat, R_Rate, A_Rate, Sleep, Exercise)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).