r - Delete "" from csv values and change column names when writing to a CSV -


i'm trying create csv files out of r table. cant understand why values checked "" when use write.csv() function. data looks this:

        sample  sample_name sample_group    pool_id sample_plate    nortum  sentrix_id    sentrix_position  hybnr     1   00_11242    00_24200n2  mutyh   gs0005703-opa   gs0010004-dna   n     1280307   r007_c005   1     2   00_11242    00_24200n2  mutyh   gs0005704-opa   gs0010004-dna   n   1280307 r007_c011   1     3   00_11242    00_24200n2  mutyh   gs0005702-opa   gs0010004-dna   n   1416198 r007_c011   2     4   00_11242    00_24200n2  mutyh   gs0005701-opa   gs0010004-dna   n   1416198 r007_c005   2     5   00_7    00_7t   mutyh   gs0005701-opa   gs0010004-dna   t   1416198 r006_c005   2     6   00_7    00_7t   mutyh   gs0005702-opa   gs0010004-dna   t   1416198 r006_c011   2     7   00_7    00_7t   mutyh   gs0005704-opa   gs0010004-dna   t   1280307 r006_c011   1     8   00_7    00_7t   mutyh   gs0005703-opa   gs0010004-dna   t   1280307 r006_c005   1     9   01_677  01_677n hnpcc_uv    gs0005701-opa   gs0010004-dna   n   1416198 r002_c006   2     10  01_677  01_677n hnpcc_uv    gs0005704-opa   gs0010004-dna   n   1280307  

and in output file csv every value looks this:

"100" "r05_80611" "r05_80611n" "na_fam" "gs0005701-opa" "gs0010004-dna" "n" 1416198 "r003_c006" 2 

why function putting quotes around values , there way this.

i'm wondering how can change column names when writing csv files since i`m starter i've no clue on how this.

see manual write.table {utils}.

help(write.csv)  write.csv(x, quote = false) 

the justification quoting fields default unquoted fields containing commas misinterpreted.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -