မက်ထရစ်ကို R တွင် vector တစ်ခုသို့ ပြောင်းရန် အောက်ပါ syntax ကို သင်သုံးနိုင်သည်။ #convert matrix to vector (sorted by columns) using c() new_vector <- c(my_matrix) #convert matrix to vector (sorted by rows) using c() new_vector <- c(t(my_matrix)) #convert matrix to vector (sorted by columns)...
ဒေတာဘောင်၏ကော်လံများတွင် အချို့သောတန်ဖိုးများဖြစ်ပေါ်မှုအရေအတွက်ကိုရေတွက်ရန် အောက်ပါအထားအသိုကို R တွင်သုံးနိုင်သည်။ #count number of occurrences of each value in column table(df$column_name) #count number of occurrences of each value (including NA values) in column table(df$column_name, useNA = ' always ') #count number of occurrences of specific value length(which(df$column_name==...
Vector များနှင့် ဒေတာဘောင်များတွင် ပျောက်ဆုံးနေသောတန်ဖိုးများကို စစ်ဆေးရန် R ရှိ is.na() လုပ်ဆောင်ချက်ကို သင်အသုံးပြုနိုင်ပါသည်။ #check if each individual value is NA is. na (x) #count total NA values sum( is.na (x)) #identify positions of NA values which(is. na (x)) အောက်ဖော်ပြပါ ဥပမာများသည် ဤလုပ်ဆောင်ချက်ကို လက်တွေ့အသုံးချနည်းကို ပြသထားသည်။ ဥပမာ...