subset1 [Week 04] Lectures [Week 04] Lectures # Useful functions sample(X, #sample, replace = FALSE, ...) [41 sample split] sample - random-sampling with and without (default) replacement set.seed(2018) x 25) mtcars[mtcars$mpg > 25, ] [42 merge which] Merge Merge(df1, df2, ...) - Join two data frames into one with common variables x 2021. 3. 28. 이전 1 다음