Fellow R Users:

I have a .csv dataset that I have brought into R via read.table (and also
via read.csv). The dataset has columns that are not equal in length.
Essentially, this data file has vectors/columns in which I plan to use
different analyses on, hence they are unequal in length. Also, the columns
are either numeric or calendar dates. Is there a way to prevent R from
appending "NA"s to the numeric columns that are not the longest? Is there a
way to prevent R from appending blank cells to the columns of dates in the
dataset that are not the longest? In other words, I'd like to have R
maintain each column's length.

I am aware that I can use "na.omit" before calling each numeric column in my
analysis in order to work with the subset of that column that does not
contain the "NA" values. However, the na.omit command does not work when R
appends blank cells to my date column lengths. Is there something analogous
to "na.omit" that I might be able to use when I am working with a column of
dates to ignore the blank cells?

Further, I am curious as to whether there is an option that one might use
when the dataset is read in to R in order to keep all the column lengths as
they are. Any ideas/hints would be very much appreciated.

platform i386-pc-mingw32

arch i386

os mingw32

system i386, mingw32

status

major 2

minor 3.1

year 2006

month 06

day 01

svn rev 38247

language R

Thank you,

Dave H

	[[alternative HTML version deleted]]

