Am 19.05.2010 20:08, schrieb Sabatier, Jennifer F. (CDC/OID/NCHHSTP):
I do know that you can't actually have unequal column lengths. The
reality is I am creating a pretty table to export to EXCEL and it
Now that I have Stefan's solution, which turns all the un-needed info
into NAs I can use NAT
ct: Re: [R] Blanking out specific cells in a data frame
Hi Jen,
You cannot have a dataframe with unequal column lengths, so you have two
options (well maybe more, but two that come to mind): set the values to
missing instead of deleting them, or store your data in a list instead
of a
data frame.
Fo
(CDC/OID/NCHHSTP)
Subject: Re: [R] Blanking out specific cells in a data frame
Am 19.05.2010 19:36, schrieb Sabatier, Jennifer F. (CDC/OID/NCHHSTP):
> mydf<-data.frame(matrix(rnorm(102), ncol=6)
>
you mean something like:
mydf[2:length(mydf[,1]),6]&l
Hi Jen,
You cannot have a dataframe with unequal column lengths, so you have two
options (well maybe more, but two that come to mind): set the values to
missing instead of deleting them, or store your data in a list instead of a
data frame.
For option 1 (recommended) all you need is
mydf[-1, 6]
Am 19.05.2010 19:36, schrieb Sabatier, Jennifer F. (CDC/OID/NCHHSTP):
mydf<-data.frame(matrix(rnorm(102), ncol=6)
you mean something like:
mydf[2:length(mydf[,1]),6]<-NA
hth
Stefan
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
Hi R-Help,
I am a new R user. I have used SAS for many years (just FYI on what I
am used to and possible obstacles it presents).
I have a data frame:
mydf <-data.frame(matrix(rnorm(102), ncol=6)
I would like to be able to delete ALL the information in column 6 for
rows 2 through r, where r=#ro
6 matches
Mail list logo