This week the code was quite easy to implement which made understanding the underlying principle a little easier I feel like my understanding of how to navigate R and it's processes is getting better along with my understanding of more complex statistic knowledge. # 1. Your data.frame is assignment_data <- data.frame( Country = c( "France" , "Spain" , "Germany" , "Spain" , "Germany" , "France" , "Spain" , "France" , "Germany" , "France" ), age = c( 44 , 27 , 30 , 38 , 40 , 35 , 52 , 48 , 45 , 37 ), salary = c( 6000 , 5000 , 7000 , 4000 , 8000 ), Purchased=c( "No" , "Yes" , "No" , "No" , "Yes" , "Yes" , "No" , "Yes" , "No" , "Yes" )) #Generate simple table in R that consists of four rows: Country, a...
Blog for Stats