Data Science and Machine Learning Internship ...
- 22k Enrolled Learners
- Live Class
R is a statistical software package that allows data manipulation and for statistical modelling and graphics. It has R Commander which is a graphical user interface with menus to use in R. R Commander was developed by John Fox, from McMaster University, to make it easier for students to comprehend how software can be used to perform data analysis without the complications of learning commands
The R software must be installed on your computer in order to use R Commander. In order to function properly in windows system, the R commander must be run as an SDI (Single Document Interface).
The easiest form of data to import into R is a simple text file, and this will often be acceptable for problems of small or medium scale. In this post, let’s discuss about the method to import test data in R commander. In R, data can be entered by 2 methods: Manually and Importing. Let’s first look at the steps involved in importing data.
Start R program by clicking on the R icon or R in the programs.
Open the R commander program. At the prompt, type ‘Rcmdr’ and press return. The R commander window will open up as shown below:
In the R menu click on Data–> Import Data –> From text file. The above steps will lead to a dialogue box as shown below:
R provides an option to import data in such variable formats. Once imported, you can start your analysis based on it.
The column names can be changed as per the dataset. For example in the below pic, we have customized the column name as ‘custId.’
The column name is set on closing the ‘Variable editor’ window after entering the variable name. Once saved, this dataset becomes an ‘Active dataset.’ (Active dataset is the dataset which is being currently processed in R commander.)
It is not always possible to enter data manually and also the data might not be available in hand all the time. This is true in places where the data is present at an external location or is huge in volume. Considering the aspects of such data that needs to be analysed, the option to export data from another location is only practical and very necessary.