![]() ![]() The third row is missing in each of the three variables.Įxample 1: Removing Rows with Some NAs Using na.omit() FunctionĮxample 1 illustrates how to use the na.omit function to create a data set without missing values. Each of the variables contains at least one NA values (i.e. Data 0 # 3 NA NA # 4 7 XX 1 # 5 8 YO 1 # 6 1 YA NAĪs you can see based on the previous output of the RStudio console, our example data frame consists of six rows and three columns. ![]()
0 Comments
Leave a Reply. |