Discuss, Learn and be Happy דיון בשאלות

help brightness_4 brightness_7 format_textdirection_r_to_l format_textdirection_l_to_r

What will be the output of the following loop? ``` i <- 1 while (i <= 5) { print(i) i <- i + 2 } ```

1
done
by
מיין לפי

What will be the result of the following code: dim(matrix(1:6, nrow = 2)`?

1
done
by
מיין לפי

מה עושה הפונקציה str()?

1
done
by
מיין לפי

כיצד להגדיר פונקציה `add` שלוקחת שני ארגומנטים `x` ו-`y` ומחזירה את הסכום שלהם?

1
done
by
מיין לפי

What is the result of `length(c(5, 10, NA))`?

1
done
by
מיין לפי

מה עושה הפונקציה which.max()?

1
done
by
מיין לפי

What is the output of the following code: ``` x <- c(1,2,3,4) y <- x > 2 class(y) ```

1
done
by
מיין לפי

כיצד תגדיר מחדש את מערך הנתונים של `mtcars` כך שיכלול רק שורות שבהן `mpg` גדול מ-20?

1
done
by
מיין לפי

What is the result of `sum(1:5)`?

1
done
by
מיין לפי

How do you read a CSV file named "data.csv" into a variable `df` in R?

1
done
by
מיין לפי