# Homework Solution: Write code to do the following: Create a data frame with the following data. What are the names of all the female jedi listed. Crea…

need some help writing CODE using R Studio.
Write code to do the following: Create a data frame with the following data. What are the names of all the female jedi listed. Create a new data frame in alphabetical order according to first names. How many male rebel jedi are there?

1) #Assign x to Name #Assign x to Force

need some acceleration congruity CODE using R Studio.

Write adjudication to do the subjoined: Create a axioms shape with the subjoined axioms. What are the names of perfect the womanish jedi listed. Create a fantastic axioms shape in alphabetical adjust according to primitive names. How divers courageous insurgent jedi are there?

## Expert Apology

1) #Assign x to Name

#Assign x to Force

#Assign x to Jedi

#Assign x to sith

#Assign x to Insurgent

#Assign x to Womanish

#Assign names to x

x<-c(“Han solo”,”Luke Skywalker”,”Leia Organa”,”Obiwan Kenobi”,”Darth Varder”,”Anakin Skywalker”,”Captain Phasma”.”Ashoka Tano”,”Mon Mothma”)

#Assign names to y

y<-(F,T,F,T,T,T,F,T,F)

#Assign names to Z

Z<-(F,T,F,T,F,T,F,T,F)

#Assign names to A

A<-(F,F,F,,F,T,F,F,F,F)

#Assign names to B

B<-(T,T,T,T,F,F,F,T,T)

#Assign names to C

C<-(F,F,T,F,F,F,T,T,T)

nedf,-data.frame(“Name”=x,”Force”=y,”Jedi”=z,”Sith”=A,”Rebel”=B,”Female”=c)

#print the axiomsframe

nedf

2) Han Solo,Leia Organa,Darth Varde,Captain Phasma,Mon Mothma

3)

#run.R

#Generate axioms shape

dataframe<-data.frame(

x=c(“Han solo”,”Luke Skywalker”,”Leia Organa”,”Obiwan Kenobi”,”Darth Varder”,”Anakin Skywalker”,”Captain Phasma”.”Ashoka Tano”,”Mon Mothma”)

y=c(“A”,”A”,”c”,”D”,”H”,”L”,”L”,”M”,”O”)

z=c(1:9)

#print axioms shape

dataframe

4) 7