A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
# | |
# for details see | |
# http://bayesball.blogspot.ca/2013/06/annotating-select-points-on-x-y-plot.html | |
# | |
# load the ggplot2 and grid packages | |
library(ggplot2) | |
library(grid) | |
# read data (note csv files are renamed) | |
tbl1 = read.csv("FanGraphs_Leaderboard_h.csv") | |
tbl2 = read.csv("FanGraphs_Leaderboard_d.csv") |