Web Technology Slip 30
Reviewed by technical_saurabh
on
February 12, 2021
Rating:
team-analytics.blogspot.com
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Web Technology Slip 20
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Web Technology Slip 19
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Reviewed by technical_saurabh
on
February 12, 2021
Rating: 5
Web Technology Slip 17
Answer :
Answer :
Reviewed by technical_saurabh
on
February 11, 2021
Rating: 5
Web Technology Slip 15
Answer :
Answer :
Reviewed by technical_saurabh
on
February 11, 2021
Rating: 5
Web Technology Slip 14
Answer :
Reviewed by technical_saurabh
on
February 11, 2021
Rating: 5
Answer :
Reviewed by technical_saurabh
on
February 11, 2021
Rating: 5

1) Give names to the elements in the list.
list_data <- ava="" br="" c="" ed="" lack="" list="" reen="" ython="">
print(list_data)
names(list_data) = c("Color", "Language(s)")
print("List with column names:")
print(list_data)
2) Add an element at the end of the list.
list_data <- ava="" br="" c="" ed="" lack="" list="" reen="" ython="">
print("List:")
print(list_data)
print("Add a new element at the end of the list:")
list_data[4] = "New element"
print("New list:")
print(list_data)
3) Remove the last element.
list_data <- ava="" br="" c="" ed="" lack="" list="" reen="" ython="">
print(list_data)
print("Remove the Last element of the list:")
list_data[2] = NULL
print("New list:")
print(list_data)
4) Update the 3rd Element
list_data <- br="" c="" ed="" lack="" list="" reen="" saurabh="" ython="">
print(list_data)
print("Update the second element of the list:")
list_data[3] = "R programming"
print("New list:")
print(list_data)
->->->->
m1 = matrix(c(1, 2, 3, 4, 5, 6), nrow = 2)
print("Matrix-1:")
print(m1)
m2 = matrix(c(0, 1, 2, 3, 0, 2), nrow = 2)
print("Matrix-2:")
print(m2)
result = m1 + m2
print("Result of addition")
print(result)
result = m1 - m2
print("Result of subtraction")
print(result)
num = as.integer(readline(prompt = "Enter a number: "))
for(i in 1:10) {
print(paste(num,'x', i, '=', num*i))
}
Reviewed by technical_saurabh
on
December 28, 2020
Rating: 5

Employees = data.frame(Name=c("Anastasia S","Dima R","Katherine S", "JAMES A","LAURA MARTIN"),
Gender=c("M","M","F","F","M"),
Age=c(23,22,25,26,32),
Designation=c("Clerk","Manager","Exective","CEO","ASSISTANT"),
SSN=c("123-34-2346","123-44-779","556-24-433","123-98-987","679-77-576")
)
print("Details of the employees:")
print(Employees)
a = c(10,20,10,10,40,50,20,30)
b = c(10,30,10,20,0,50,30,30)
print("Original data frame:")
ab = data.frame(a,b)
print(ab)
print("Duplicate elements of the said data frame:")
print(duplicated(ab))
print("Unique rows of the said data frame:")
print(unique(ab))
v = c("a", "b", "a", "c", "b")
print("Original vector:")
print(v)
f = factor(v)
print("Factor of the said vector:")
print(f)
levels(f)[1] = "e"
print(f)
Reviewed by technical_saurabh
on
December 28, 2020
Rating: 5
Program 1 :
Answer :
Reviewed by technical_saurabh
on
December 24, 2020
Rating: 5