R တွင် သင်ကြုံတွေ့ရလေ့ရှိသော အမှားတစ်ခုမှာ- Error in file(file, "rt"): cannot open the connection In addition: Warning message: In file(file, "rt"): cannot open file 'data.csv': No such file or directory R ဖြင့် CSV ဖိုင်ကို ဖတ်ရန် ကြိုးစားသောအခါတွင် ဤအမှားသည် ဖြစ်ပေါ်လာသော်လည်း သင်ဝင်ရောက်ရန် ကြိုးစားနေသော ဖိုင်အမည် သို့မဟုတ် လမ်းညွှန်မှာ...
R တွင် စာရင်းတစ်ခုသို့ တန်ဖိုးတစ်ခုထည့်ရန် အောက်ပါအထားအသိုကိုသုံးနိုင်သည်။ #get length of list called my_list len <- length(my_list) #append value of 12 to end of list my_list[[len+1]] <- 12 R တွင် စာရင်းတစ်ခုသို့ တန်ဖိုးများစွာထည့်ရန် အောက်ပါ syntax ကို သင်အသုံးပြုနိုင်သည်- #get length of list called my_list len <-...
R ရှိ dplyr ပက်ကေ့ဂျ်ကို အသုံးပြု၍ ဒေတာဘောင်အတွင်း သုညဖြင့် NA တန်ဖိုးများအားလုံးကို အစားထိုးရန် အောက်ပါ syntax ကို သင်အသုံးပြုနိုင်သည်- #replace all NA values with zero df <- df %>% replace(is. na (.), 0) ဒေတာဘောင်တစ်ခု၏ သီးခြားကော်လံတစ်ခုတွင် NA တန်ဖိုးများကို အစားထိုးရန် အောက်ပါ syntax ကို သင်အသုံးပြုနိုင်သည်- #replace NA values with...