Skip to content
Prev 294390 / 398503 Next

Help with writing data to csv

Take a look at the data in a text file and you will see that it is a
CSV file with a single column:

"1 ONE.LEVEL.ANALYSIS.WITH.Speaker..random..and.folseg..5.04e.08....preseg..3.77e.07....position..0.402....sylstress..0.93.									"
"2 $preseg									"
"3  factor   coef tokens  mean									"
"4       s  0.128      1 1.075									"
"5       i  0.028     50 1.040									"
"6       e -0.009     27 1.001									"
"7       z -0.009      3 1.036									"
"8       a -0.018     52 0.996									"
"9       o -0.057     23 0.960									"
"10       u -0.064     10 0.942									"
"11 $folseg									"
"12  factor   coef tokens  mean									"
"13       i  0.063     50 1.041									"
"14       e  0.060     19 1.026									"
"15       s  0.007      8 1.001									"
"16       a  0.005     61 0.996									"

It appears that you have data stored in a list, and not a dataframe,
that you are calling write.csv with.  Show the actual write.csv file
and the 'str' of the object that you are trying to write.  Also your
data has varying number of columns.  Exactly what were you trying to
do?  The system is doing exactly what you are telling it to do.  So
what I would need to see is the actual object you are working with and
then what you expect to see as output.
On Sat, May 12, 2012 at 9:10 PM, Delano L <chombito718 at hotmail.com> wrote: