zoukankan      html  css  js  c++  java
  • read.table()-1

     所以打开读取GSE42872_series_matrix.txt.gz文件时,参数comment.char = "!"就表示!后面的注释文件不用读取。

    > exprSet <- read.table("GSE42872_series_matrix.txt.gz",sep = "	",fill = T,comment.char = "!",header = T)
    > class(exprSet)
    [1] "data.frame"
    > dim(exprSet)
    [1] 33297     7
    > head(exprSet)
       ID_REF GSM1052615 GSM1052616 GSM1052617 GSM1052618 GSM1052619
    1 7892501    7.24559    6.80686    7.73301    6.18961    7.05335
    2 7892502    6.82711    6.70157    7.02471    6.20493    6.76554
    3 7892503    4.39977    4.50781    4.88250    4.36295    4.18137
    4 7892504    9.48025    9.67952    9.63074    9.69200    9.91324
    5 7892505    4.54734    4.45247    5.11753    4.87307    5.15505
    6 7892506    6.80701    6.90597    6.72472    6.77028    6.77058
      GSM1052620
    1    7.20371
    2    6.24252
    3    4.73492
    4    9.65897
    5    3.99340
    6    6.77685

    用notepad打开这个文件发现,有很多以!开头的注释行,难怪!


    为啥用双反斜杠,前一个斜杠表示转义

  • 相关阅读:
    drf 权限流程解析
    drf 认证流程解析
    drf 版本解析
    Django REST framework初识
    RESTful规范
    Flask框架
    Flask框架解析目录
    hdu
    hdu 6113 度度熊的01世界(结构体的赋值问题)
    hdu 6114 chess(排列组合)
  • 原文地址:https://www.cnblogs.com/SWTwanzhu/p/12967362.html
Copyright © 2011-2022 走看看