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

help brightness_4 brightness_7 format_textdirection_r_to_l format_textdirection_l_to_r

If you have a list `x <- list(a = 1, b = 2, c = 3)`, what does `x$b` return?

1
done
by
מיין לפי

What is the result of `seq(1, 10, by=2)`?

1
done
by
מיין לפי

What does the `rep()` function do in R?

1
done
by
מיין לפי

כיצד תדגום באקראי 3 אלמנטים מוקטור vec?

1
done
by
מיין לפי

If `vec <- c(3, 1, 4)`, what is the result of `sort(vec)`?

1
done
by
מיין לפי

How to add a column `col` with value `5` to a data frame `df` in R?

1
sentiment_very_satisfied
by
מיין לפי

מה יהיה הפלט של sprintf("%02d,5):

1
done
הפונקציה sprintf() בפורמטים R ומחזירה מחרוזת תווים לפי הפורמט שצוין. מחרוזת הפורמט "%02d" פירושה שערך המספר השלם צריך להיות בפורמט של לפחות שתי ספרות, ואם למספר השלם יש פחות משתי ספרות, הוא ירופד באפסים בצד שמאל.
by
מיין לפי

How to convert a factor variable `f` to numeric in R?

1
done
by
מיין לפי

What is the output of `paste("Hello", "world!", sep = " ")` in R?

1
done
by
מיין לפי

What is the output of `sum(is.na(c(NA, 1, 2, NA)))` in R?

1
sentiment_very_satisfied
by
מיין לפי