반응형 filter()1 (R)Make a new variable/ mutate() mutate() : make a new variable 'msleep' is a data set in ggplot2 which consists of 'name', 'genus' , 'vore',...'bodywt'. I will make a new data set named 'new_msleep' which contains a new variable 'ratio_ram' which does not exist in 'msleep' data set. >library(ggplot2) -----------for dataset 'msleep' in ggplot2>library(dplyr) ------------for mutate(), filter() > str(msleep)tibble [61 x 12] (S3: .. 2020. 7. 27. 이전 1 다음 반응형