R 问题

1、# Warning message: In : invalid factor level, NA generated
解决:
The warning message is because your "Type" variable was made a factor and "lunch" was not a defined level. Use the stringsAsFactors = FALSE flag when making your data frame to force "Type" to be a character.

你可能感兴趣的:(R 问题)