Change Path:
>>getwd()
[1] "C:/Documents and Settings/tmhgxj/My Documents"
>>setwd("C:/Documents and Settings/tmhgxj/Desktop/SOFT WARE/Python dominates R")
Read file:
> data = read.table(file="test.dat",sep = '\t',header=TRUE)
> data gene num blastbomb T1
BCL2 197 21.666928 104450.60392
PRKCA 13 4.056293 14053.44213
TP53 48 9.358030 9479.08444
> data$blastbomb
[1] 21.666928 4.056293 9.358030 24.279278 184.807035 78.335393 36.393178
[8] 438.538598 26.723373 58.529915 29.266824 628.262061 0.000000 18.468964
[15] 1233.334068 94.502689 278.558548 26.920042 230.457498 296.849626 63.847165[22] 9.956780 1271.750782 590.197136 668.536534
Comments: R is samilar to Matlab, but it is more powful in statistics than later. R is favorite to deal with data with colomns and do statistical analysis on the data. If R can combined with Python, the data analysis will become much easier. A reference can refer to http://math.illinoisstate.edu/dhkim/Rstuff/Rtutor.html
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment