Reading and Getting Data into R
Using the combined Command for Making Data
Syntax:
- sample_name = c(item1, item2, item3, itemn) # where items are Numbers or Any Name Etc..
data1 = c(3, 5, 7, 5, 3, 2, 6, 8, 5, 6, 9) #try in Your Computer
data2 = c(data1, 4, 5, 7, 3, 4)
data1 = c(6, 7, 6, 4, 8, data1)
Entering Text Items as Data
syntax : #try this
Your_text = c(“item1”, “item2”, ‘item3’)
day1 = c('Mon', 'Tue', 'Wed', 'Thu')
day1 = c(day1, 'Fri')
mix = c(data1, day1)
No comments:
Post a Comment