# TASK 2


# Theresa Darzins - Student No. 1909721


#Q1 Matrix that contains A-Z letters in columns with coordinates corresponding
#   with code using numbers:
#   For example; A loc in row 1 and col 2, so the code for 'A' becomes '12'

#   The data is held in a file called cipher.csv
#   This is within the R Scripts folder of the current working directory 
#   and contains headers

#   Load file

results<-read.csv("R Scripts/cipher.csv",header=FALSE, stringsAsFactors = TRUE)
#   to show column classes as character

results
#   to print results

results1<-results[-1,-1]
#   make NEW chart minus row 1 and column 1 to match example given

colnames (results1)
NULL
colnames(results1)<-c(0,1,2,3,4,5,6,7,8,9)
#   renames columns"

rownames (results1)
NULL
rownames(results1)<-c(0,1,2,3)
#   renames rows
#    new chart with column and row values that exactly correspond with example

 
dim(results1) # to check the dimensions of results 1 (4 rows 10 columns)

results1[4,4] # prints out C (NB not [3,3] as expected so doing another table
#with nos in 



























  








