[R] Convert Binary to Decimal

2008-10-06 Thread Jason Thibodeau
me, I figured I'd ask you again. Thanks in advance, Jason Thibodeau [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

[R] cat() formatting

2008-09-25 Thread Jason Thibodeau
0 0 0 0 0 0 0 0 1 0 0 ,0.4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 ,0.5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 ,0.6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 ,0.7 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 ,0.8 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 ,0.9 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 ,1 Thanks so much, in advance. -- Jason

Re: [R] Conversion to Binary (base2)

2008-09-25 Thread Jason Thibodeau
< [EMAIL PROTECTED]> wrote: > paste(rev(as.integer(intToBits(as.integer(x))[1:17])), collapse="") > > -Christos > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Jason Thibodeau > > Sent: Thursda

Re: [R] Conversion to Binary (base2)

2008-09-25 Thread Jason Thibodeau
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1,0.2994012 Thanks so much for the help, you all are life savers! On Thu, Sep 25, 2008 at 4:11 PM, Jason Thibodeau <[EMAIL PROTECTED]>wrote: > This seems to work well. After playing with it for a while, however, I > can'

Re: [R] Conversion to Binary (base2)

2008-09-25 Thread Jason Thibodeau
. On Thu, Sep 25, 2008 at 3:56 PM, Duncan Murdoch <[EMAIL PROTECTED]>wrote: > On 9/25/2008 3:33 PM, Jason Thibodeau wrote: > >> Hello, >> >> Is there a simple way to take an input, and convert the decimal integers >> to >> binary? In this case, I h

[R] Conversion to Binary (base2)

2008-09-25 Thread Jason Thibodeau
Hello, Is there a simple way to take an input, and convert the decimal integers to binary? In this case, I have a CSV file, and I need to convert the first column of every line to binary. Thanks. -- Jason Thibodeau [[alternative HTML version deleted

Re: [R] detecting null values in a CSV file

2008-09-19 Thread Jason Thibodeau
> > -Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Jason Thibodeau > Sent: Thursday, September 18, 2008 10:12 AM > To: r-help@r-project.org > Subject: [R] detecting null values in a CSV file > > Hello all, > > I have a C

Re: [R] detecting null values in a CSV file

2008-09-18 Thread Jason Thibodeau
e. NAs? See ?read.csv and arguments '...', i.e. the arguments > '...' are passed to read.table() which takes argument 'na.strings' - a > character *vector* of strings that you want to be interpreted as NAs. > See ?read.table for more details. > > My $.02

Re: [R] detecting null values in a CSV file

2008-09-18 Thread Jason Thibodeau
', i.e. the arguments > '...' are passed to read.table() which takes argument 'na.strings' - a > character *vector* of strings that you want to be interpreted as NAs. > See ?read.table for more details. > > My $.02 > > Henrik > > On Thu, Sep 18, 200

[R] detecting null values in a CSV file

2008-09-18 Thread Jason Thibodeau
NULL's and be able to have them counted. For example, in a frequency table. How can I accomplish this? Thanks in advance for the help. -- Jason Thibodeau [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Fetching a range of columns

2008-09-15 Thread Jason Thibodeau
tions, one that does not append (the first write), and the rest that append. Thank you very much, to all of you who helped. I can write good C code, but the 'R' is all new to me :) -- Jason Thibodeau [[alternative HTML version deleted]] __

Re: [R] Fetching a range of columns

2008-09-14 Thread Jason Thibodeau
unrelated problem, but I'll propose that after this one can be solved. Thanks a lot. On Sun, Sep 14, 2008 at 2:14 PM, Jason Thibodeau <[EMAIL PROTECTED]>wrote: > Jim, this is a GREAT help. I was trying something similar before, but I was > unable to detect EOF. Thanks for the he

Re: [R] Fetching a range of columns

2008-09-14 Thread Jason Thibodeau
le','r') > invisible(readLines(input, n=1)) # skip the header > while (TRUE){ # read file >x <- try(read.csv(input, n=320, header=FALSE), silent=TRUE) # catch EOF >if (inherits(x, 'try-error')) break >write.csv(...) > } > > > &g

[R] Fetching a range of columns

2008-09-14 Thread Jason Thibodeau
of grabbing columns 2, 12, 17, I woudl like all columns in the range of 842-2411. I can't seem to do this correctly. Could somebody please provide some insight? Thanks in advance. -- Jason Thibodeau [[alternative HTML version deleted]] __

Re: [R] (no subject)

2008-09-08 Thread Jason Thibodeau
I apologize, I forgot to type the title. On Mon, Sep 8, 2008 at 11:39 AM, Jason Thibodeau <[EMAIL PROTECTED]>wrote: > Hello all, > > I have a very large file (280k lines) containing three comma separated > variables. The first variable is a 0 or 1 depicting a pass or fail. The

[R] (no subject)

2008-09-08 Thread Jason Thibodeau
need to use the histogram, should I base my chart off the example contained in the RGL package? Thanks a lot. -- Jason Thibodeau ECE Dept., University of Connecticut 371 Fairfield Way, Storrs, CT 06269 Phone: 860-486-5274 , Fax: 860-486-2447 Email: [EMAIL PROTECTED] URL: www.engr.uconn.edu/~jpt03002

[R] Large Data Set Help

2008-08-25 Thread Jason Thibodeau
I am attempting to perform some simple data manipulation on a large data set. I have a snippet of the whole data set, and my small snippet is 2GB in CSV. Is there a way I can read my csv, select a few columns, and write it to an output file in real time? This is what I do right now to a small test