At one point you feel your username could be better, but the implication of changing the username will be devastating. I tried this once. I thought it is fine. could be only worked with version control Project in R
1. change the username on the Github,
2. rename the folder source (repository folder) in local drive
3. create new version control project with new URL from Github web
4. R will automatically clone the file structure from Github web
Showing posts with label R. Show all posts
Showing posts with label R. Show all posts
26 February 2018
25 February 2018
memindah library R
menggunakan R merupakan pengalaman yang baru. pada saat memulai saya mengalami error yaitu library tidak dapat diakses. hal ini disebabkan oleh my document saya secara devault terletak di network. untuk mengatasinya dipindah ke dalam local disk dengan perintah
untuk library console
dan
.libPaths("directory")
untuk library package directory diisi dengan path document
setwd("directory")
untuk library console
dan
.libPaths("directory")
untuk library package directory diisi dengan path document
Memulai belajar R
R adalah suatu software open sourse yang dapat digunakan untuk analisa statistik, visualisasi data dan membuat program sederhana. karena MS excel dan SPSS yang saya gunakan tidak mencukupi untuk mengerjakan hal tersebut diatas maka saya memutuskan untuk menggunakan R. R dioperasikan melalui console. sehingga harus menguasi bahasa R. untuk itu saya mencari bantuan untuk mulai belajar. saat ini saya telah menyelesaikan course gratis bersama EDx untuk R yaitu Introduction to R for Data Science. course ini merupakan kolaborasi Microsoft dan https://www.datacamp.com/. course gratis ini dapat dikerjakan secara maraton selama 1 minggu berikut ujiannya.
Course dapat diakses di sini
https://courses.edx.org/courses/course-v1:Microsoft+DAT204x+3T2017/course/
Course dapat diakses di sini
https://courses.edx.org/courses/course-v1:Microsoft+DAT204x+3T2017/course/
Analisis PCA menggunakan R
dari data yang saya peroleh, dapat dilakukan analisis PCA mengunakan R, paket yang digunakana adalah FactoMineR dan factoextra. panduan analisanya dapat diamati di
http://www.sthda.com/english/wiki/factominer-and-factoextra-principal-component-analysis-visualization-r-software-and-data-mining
setelah digunakan, maka akan dipdate.
https://plot.ly/r/bubble-charts/
opsi lain kembali ke excel dengan
http://www.doka.ch/Excel3Dscatterplot.htm
http://www.sthda.com/english/wiki/factominer-and-factoextra-principal-component-analysis-visualization-r-software-and-data-mining
setelah digunakan, maka akan dipdate.
https://plot.ly/r/bubble-charts/
opsi lain kembali ke excel dengan
http://www.doka.ch/Excel3Dscatterplot.htm
if then in data frame R
perintah if then tidak dapat dilakukan dalam data frame, cukup membingungkan
if(red_ref>0.04045){var_R<-(red_ref+0.055/1.055)^2.4} else{var_R<-red_ref/12.92}
Warning message:
In if (red_ref > 0.04045) { :
the condition has length > 1 and only the first element will be used
if(red_ref>0.04045){var_R<-(red_ref+0.055/1.055)^2.4} else{var_R<-red_ref/12.92}
Warning message:
In if (red_ref > 0.04045) { :
the condition has length > 1 and only the first element will be used
dari pesan error dapat diketahui bahwa harus melakukan hal lain untuk analisa logical ini
salah satu caranya bisa dengan menggantinya dengan logika vektor
https://stackoverflow.com/questions/11865195/using-if-else-on-a-data-frame
salah satu caranya bisa dengan menggantinya dengan logika vektor
https://stackoverflow.com/questions/11865195/using-if-else-on-a-data-frame
R tidak menerima angka sebagai awal nama value
cukup mengesalkan saat melakukan input value pada R menggunakan nama value menggunakan awalan angka. R memberikan error yang tidak jelas, tidak bisa ditelusur
Error: unexpected ',' in
kemudian saya mencoba melihat oenamaan value, dan ternyata semua nama tersebut dimulai dengan huruf, dan data yang saya input dengan nama awalan angka, R melakukan rename dengan menambahkan X di depan angka tersebut. dengan melakukan rename, maka error dapat dihindari
Error: unexpected ',' in
kemudian saya mencoba melihat oenamaan value, dan ternyata semua nama tersebut dimulai dengan huruf, dan data yang saya input dengan nama awalan angka, R melakukan rename dengan menambahkan X di depan angka tersebut. dengan melakukan rename, maka error dapat dihindari
R Studio wont start
There is a new update of R studio and R version. after getting them, I installed and start them. However, the R Studio won't start. some reference can be used which
https://support.rstudio.com/hc/en-us/articles/200488508-RStudio-Desktop-Will-Not-Start
There was a confusion between R versions to start. so I decided to unisntall all of them and install the newest. but not work. I also uninstal and reinstal the R studio, also do not worked. then there is also sugested to reset all the setting
https://support.rstudio.com/hc/en-us/articles/200554736-How-To-Uninstall-RStudio-Desktop
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-s-State
the solution that I used is to uninstall all of RStudio and R versions, then delete the folder RStudio-Desktop inside C:\users\username\AppData\Local\
after deleting this folder, reinstalling the R studio and R version , and starting up the RStudio will be not a problem.
https://support.rstudio.com/hc/en-us/articles/200488508-RStudio-Desktop-Will-Not-Start
There was a confusion between R versions to start. so I decided to unisntall all of them and install the newest. but not work. I also uninstal and reinstal the R studio, also do not worked. then there is also sugested to reset all the setting
https://support.rstudio.com/hc/en-us/articles/200554736-How-To-Uninstall-RStudio-Desktop
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-s-State
the solution that I used is to uninstall all of RStudio and R versions, then delete the folder RStudio-Desktop inside C:\users\username\AppData\Local\
after deleting this folder, reinstalling the R studio and R version , and starting up the RStudio will be not a problem.
14 February 2018
R frozen for opening version control project
R was slowing down and cannot run codes properly when I using version control project. I tried
- reinstalling R
- reinstalling RStudio
- reinstalling Git
- reinstalling GitStudio
- delete localapp
not working at all. But since I use Version control, I have a copy on the Git server, So I clone the git server version while renaming the old folder. it works like a charm.
Subscribe to:
Posts (Atom)