# #设置,回声= FALSE --------------------------------------------------- knitr: opts_chunk美元集(缓存= TRUE ) ## ------------------------------------------------------------------------ 原子向量x < - rnorm (1000) # y < - x + rnorm(1000年,sd = 5) df <——data.frame (x = x, y = y) #对象的类“data.frame”情节(y ~ x, df) #通用的情节,情节的方法。公式符合< - lm (y ~ x, df) #类的lm方法的对象(类=类(适合))# # #内省,Biostrings消息= FALSE ------------------------------------------- 要求(Biostrings) #生物序列数据(phiX174Phage) #示例数据,看到了什么? phiX174Phage phiX174Phage m < - consensusMatrix (phiX174Phage)[1:4,] #诊断。x位置计数多态<——(colSums (m ! = 0) > 1) m(多态)# #——showMethods eval = FALSE --------------------------------------------- ## showMethods(类=类(phiX174Phage),=搜索 ()) ## ---- phiX ---------------------------------------------------------------- 库(Biostrings)数据(phiX174Phage) # #——consensusMatrix ----------------------------------------------------- m < - consensusMatrix (phiX174Phage)[1:4]多态<——(colSums (m ! = 0) > 1) mapp(字符串的子串,多态性,多态,MoreArgs =列表(x = phiX174Phage))