I'm trying to rbind two data frames, both with the same columns names. One
of the columns is a variable with date-time and this variable is causing the
rbind to fail--giving the error
Error in names(value[[jj]])[ri] - nm : 'names' attribute [7568] must be
the same length as the vector [9]
Is
-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Andrew Anglemyer
Sent: Friday, 18 February 2011 3:54 PM
To: r-help@r-project.org
Subject: [R] problem with rbind when data frame contains an date-time variable
POSIXt POSIXlt
I'm trying to rbind two data frames, both
Anglemyer
Sent: Friday, 18 February 2011 3:54 PM
To: r-help@r-project.org
Subject: [R] problem with rbind when data frame contains an date-time
variable POSIXt POSIXlt
I'm trying to rbind two data frames, both with the same columns names. One
of the columns is a variable with date-time
It took me some time to find this bug in my code. Is this a feature of
R? Am I doing something wrong?
a=data.frame(x=1:10,y=1:10)
b=data.frame(x=11:20,y=11:20)
z=data.frame(1:10,11:20)
a$z=z
b$z=z
rbind(a,b)
Error in `row.names-.data.frame`(`*tmp*`, value = c(1, 2, 3,
4, :
On 30/06/10 20:46, Michael Lachmann wrote:
It took me some time to find this bug in my code. Is this a feature of
R? Am I doing something wrong?
a=data.frame(x=1:10,y=1:10)
b=data.frame(x=11:20,y=11:20)
z=data.frame(1:10,11:20)
a$z=z
You are (kind of) assigning *two* columns from the data
On 30 Jun 2010, at 22:55, Allan Engelhardt wrote:
a$z=z
You are (kind of) assigning *two* columns from the data frame z to
the name 'z' in a which is probably not going to work as you
expect. R tries to be clever which may or may not be a Good Thing.
Try
a$z1 - z[,1]
a$z2 - z[,2]
Hi All,
I have a problem with rbind.
I have data that consist of weight height .. etc of 1000 patients. I would
like to find the mean and the standard deviation ( for the weight , height
etc) for each gender.
data-read.table(data.txt, header=T, sep='\t')
fdata=NULL
for (i in 1:50){
I am trying to use rbind to have the two data on the top of each other but I
am getting an extra X on the column header and the rows are numberd , How to
get rid of this problem? I appreciate your help
x1- read.table(file=data1.txt, header=T, sep=\t)
x2-read.table(file=data2.txt, header=T,
Try 'check.names=FALSE' in the read.table call.
On Fri, Aug 22, 2008 at 6:02 PM, kayj [EMAIL PROTECTED] wrote:
I am trying to use rbind to have the two data on the top of each other but I
am getting an extra X on the column header and the rows are numberd , How to
get rid of this problem? I
9 matches
Mail list logo