R တွင် ပေါင်းစပ်မှုများနှင့် ပြောင်းလဲမှုများကို တွက်ချက်ရန် အောက်ပါလုပ်ဆောင်ချက်များကို သင်အသုံးပြုနိုင်သည်- #calculate total combinations of size r from n total objects choose (n,r) #calculate total permutations of size r from n total objects choose (n, r) * factorial (r) အောက်ဖော်ပြပါ ဥပမာများသည် ဤလုပ်ဆောင်ချက်တစ်ခုစီကို လက်တွေ့အသုံးချနည်းကို ပြသထားသည်။ ဥပမာ...
R တွင် စာရင်းခွဲများပြုလုပ်ရန် အောက်ပါ syntax ကို သင်အသုံးပြုနိုင်သည်- #extract first list item my_list[[1]] #extract first and third list item my_list[c(1, 3)] #extract third element from the first item my_list[[c(1, 3)]] အောက်ပါနမူနာများသည် အောက်ပါစာရင်းဖြင့် ဤ syntax ကိုမည်သို့အသုံးပြုရမည်ကိုပြသသည်- #create list my_list <- list(a = 1:3,...
R တွင် အမျိုးအစားခွဲကွဲပြားသော variable တစ်ခုကို ဖန်တီးရန် အောက်ပါ syntax ကို အသုံးပြုနိုင်သည်။ #create categorical variable from scratch cat_variable <- factor(c(' A ', ' B ', ' C ', ' D ')) #create categorical variable (with two possible values) from existing variable cat_variable <-...