while executing i am getting error
Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf
R Introduction-to-Data-Frames-in-R 02-03 min 10-20 sec
The error occurred because " captaincy$names "is of type character instead of type factor. Maybe due to the difference in the version of R used in the video and the one used by you, " captaincy$names " do not automatically convert to type factor when a data frame is created. The error can be fixed by executing the following command - "plot(as.factor(captaincy$names),captaincy$played)".