saving . . . saved Data Frames has been deleted. Data Frames has been hidden .
Data Frames
Title
Question
while executing i am getting error
 plot(captaincy$names,captaincy$played)
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 28-04-20, 1:46 p.m. premmsingh1973

Answers:

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)".
28-04-20, 1:58 p.m. chrl3hr5@gmail.com
thank u
28-04-20, 9:09 p.m. premmsingh1973

Login to add comment


Log-in to answer to this question.