forked from Nyasita/HackBioAssignmentPauling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PravithaKS.r
27 lines (27 loc) · 1.11 KB
/
PravithaKS.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
HackBio Firsttask
#Print my name
print ("Pravitha KS")
#Print mail ID
print ("[email protected]")
#print <slack_handle>
print ("@Pravithaks10277")
#print Biostack
print ("Drug development")
#print <twitter_handle>
print ("@Pravisivanandan")
#calculating Hamming distance between <slack_handle> and <twitter_handle>
library(stringdist)
stringdist("Pravithaks10277","Pravisivanandan", method = 'hamming',nthread = getOption("sd_num_thread"))
#print name, email, slack_handle, biostack, twitter_handle, hamming_distance
print (paste ("Pravitha KS","[email protected]","@Pravithaks10277","Drug development","@Pravisivanandan","10"))
df <- data.frame(Name = c("Pravitha KS"),
Email = c("[email protected]"),
Slack_handle = c("@Pravithaks10277"),
Biostack = c("Drug development"),
Twitter_handle = c("@Pravisivanandan"),
Hamming_distance = c(10)
)
print (df)
write.table(df,file= "Exportedfirsttaskhackbio.csv", row.names = F, sep = ',' )
dev.off()
################################################