Post Your Answer
Import data in R
4 years ago in Data collection By Lalit Mudra
I want to import data in R language. But I have no clue how to do it. Could someone please help me?
All Answers (3 Answers In All)
By Niranjan Singh Answered 5 years ago
Most of my data was saved in MS Excel. I have shared the steps I followed to import those data. Go through it. Open the Excel data and go to File > Save As or press Ctrl+Shift+S Name this with anything, say Data. Then before clicking Save, make sure to change the File Format to Comma Delimited Text and better set the directory to My Documents folder, for Windows. When saved, this file will have a name Data.csv. Now open R, and run the following MyRData <- read.csv (“Data.csv”, header = TRUE) (Note- The argument header = TRUE tells R that the first row of the data are the labels of every column. If set to FALSE, means the first row of the data are not the labels)
By Parul Singh Answered 5 years ago
You can import data either from STATA or SAS file by using the following codes STATA – > library(“foreign”) > mydata names(mydata) > write.dta(mydata, file = “mydata.dta”) SAS – library(“foreign”) mydata<-read.xport("SASData.xpt") names(mydata)
By Rekha Bajaj Answered 5 years ago
Lalit, do you want to import data from Excel file or SPSS file or from SAS? Please specify. I have imported data from SPSS file. These codes will let you import data to R language. > library(“foreign”) > mydata names(mydata)
asked at 18 May, 2019 12:23 in Data collection By Riya N
asked at 04 May, 2019 10:11 in Data collection By Anubhav Kumar
asked at 11 Apr, 2019 09:18 in Data collection By Dani khan
asked at 11 Apr, 2019 06:01 in Data collection By Jeff
asked at 10 Apr, 2019 09:18 in Data collection By Shiran Khan
asked at 15 Feb, 2019 08:17 in Data collection By Yashti Iyer
asked at 25 Aug, 2018 07:43 in Data collection By Amrita Goyal
asked at 30 Jul, 2018 09:00 in Data collection By Yashti Iyer
asked at 18 Jul, 2018 10:09 in Data collection By Keshav Verma
asked at 12 Jul, 2018 16:57 in Data collection By Pradeep Sharma
asked at 12 Jul, 2018 09:54 in Data collection By Keshav Verma
asked at 09 Jul, 2018 15:53 in Data collection By Sur M
asked at 07 Jul, 2018 14:13 in Data collection By Yashti Iyer
asked at 07 Jul, 2018 12:31 in Data collection By Sonali Jain
717144 Bhagirathi Bisht
Query regarding image processing
653581 Sonam Bhatia
749732 Muhammad Umar Farooq
Disagreements between my supervisor and me
773355 Anju Mehera
716457 Muhammad Umar Farooq
Difference between multivariate and bivariate analysis
848507 Lalit Mudra
697388 Rahul Kohli
710370 Raghav V
Peer reviews are reliable or not?
678530 Priyanshu Rathore
- Angular
- Research Objectives
- PhD Admissions
- Action Research
- APA Style
- Annexure I Journals
- Academic Writing
- Abstract
- Architecture
- Architecture
- Assignments
- Bibliography
- Case Study
- Citations
- Concept Matrix
- Concept Paper
- Conceptual Framework
- Conclusion
- Content Analysis
- Corrections
- Cross Sectional Study
- CST Software
- PhD Data
- Data analysis
- Data Collection
- Data Analysis
- Descriptive Statistics
- Design
- Discussion
- Dissertation
- Draft
- Editing
- Empirical Paper
- Engineering
- English literature
- Ethnobotanical
- Ethnographic Method
- Excel
- Executive Summary
- Financial analysis
- Formatting
- Grammarly
- Grounded theory
- Guidelines
- HR
- Hypothesis
- Impact Factor Journals
- Interview
- Introduction
- Java
- Journal
- LabVIEW
- Latex
- Literary Analysis Techniques
- Literature
- Literature Review
- Longitudinal study
- Management
- Material for study
- Matlab
- Methodology
- MLA Format
- MLA Style
- Objectives
- Peer Review
- Paper Publication
- PhD
- PhD Funding
- PhD Interview
- PhD planner
- PhD Thesis
- PhD Management
- Pilot Study
- Plagiarism Check
- Presentation
- Psychology
- Qualitative Data
- Quantitative methods
- Qualitative Method
- Qualitative research
- Qualitative Research
- Quantitative research
- Questionnaire
- References
- Referencing
- Report Writing
- Research design
- Research Methodology
- Research methods
- Research objective
- Research Paper
- Research philosophy
- Research Problem
- Research Proposal
- Research Question
- Research Hypotheses
- Review Paper
- Revisions
- Sample
- SCI Journals
- Secondary Data Analysis
- Secondary Source
- Software
- Software for Plagiarism
- SPSS
- SQL
- SSCI Journals
- STATA
- Statistical Tests
- Structural Analysis
- SWOT Analysis
- Synopsis
- Technical Writing
- Thematic Analysis
- Thomson Reuters
- Topic
- Topic Selection
- Turnitin
- University Guidelines
- Variables
- Writing
- Writing Editing
- Testtag
- Dissertation
- Simulation
- Coding
- Scientific Manuscript
- Algorithms
- Design
- Software
- Statistical Analysis
- Analysis
- Supervising
- Parametric Test
- Parameter
- Submission
- Base Paper
- Interpretation
- Dissipation Systems
- Data Science
- Machine Learning
- Hybrid Electric
- Power Control
- ArcGiS
- Spatial Analysis
- Switching
- Simulink
- Artificial Intelligence
- Deep Learning
- Panel Data
- Reliability
- Pandemic
- COVID-19
- HRM
- Ansys
- Multiphase Flow Modelling
- Remote Sensing Software
- ENVI
- Qualitative Research
- Thinking
- Likert Scale
- Scale Construction
- Sample Size
- Methodology
- Questionnaire
- Regression
- Linear Equation
- Linear Programming
- Wireless Communications
- Digital Communications
- Wireless Network
- Publications
- Publications
- Scientific Research
- Convergent Variant
- Conferences
- Conferences
- Abstracts
- Bioinformatics
- Differential Gene
- Survey
- Somatic Cell Nuclear Transfer
- Research Design
- Writing
- Microsoft Windows
- Student
- Circuits
- Digital
- Serum
- Plasma
- Polymerase Chain Reaction
- Solar Collector
- Heat Transfer
- Radiation
- API
- Python
- Research Paper
- Design Thinking
- Training
- Psychology
- Python
- R Programming
- Primer
- Journal Impact Factor
- Conferences
- Big Data
- Cloud Computing
- Human Behavior
- Structural Equation Modelling
- SEM Analysis
- Applied Mathematics
- Dynamical Systems
- Statistics
- Blockchain
- Testing
- Publications
- Amos
- EViews
- NS2
- NS3
- Data Analysis Tool
- Conceptual Framework
- CST Software
- Dissertation
- Indroduction
- Structural Analysis
- Renewable Energy
- Medicine
- AI Model
- science experiments
- FUTURE TECH