Append and replacing data in r
I am writing a few lines of codes to create a data table full of NAs but don't know how to append the data of results into the data table I created while replacing the position of NAs.
Here is my data table
games-10
game_results-as.data.frame(matrix(NA,games,3))
install.packages("data.table")
library(data.table)
setnames(game_results,c("V1","V2","V3"),c("winner","round","winnerscore"))
game_results
Category Data Science