---
title: "Creating dataframe and importing files"
output: html_notebook
---

I will create a dataframe from multiple vectors

```{r}
roll_no <-c(43,21,56,32)
names <-c('Balaram','Sagnic','Sanu','Surojit')
```
```{r}
class_b = data.frame(roll_no,names)
print(class_b)
```

I will import a csv file
Option - 1 (static and hard coded)
```{r}
setwd('C:\\Users\\Satyajit\\OneDrive\\Documents\\R_program')
getwd()
student = read.csv('student.csv')
```

Option - 2
```{r}
student1 = read.csv('C:\\Users\\Satyajit\\OneDrive\\Documents\\R_program\\student.csv')
```

Option - 3 (soft and dynamic coding)
```{r}
student_3 = read.csv(file.choose())
```

Reading a excel file
```{r}
library(readxl)
student_4 = data.frame(read_excel(file.choose()))
```


