search for: szee2007

Displaying 3 results from an estimated 3 matches for "szee2007".

2011 Nov 24
3
Is there way to add a new row to a data frame in a specific location
Is there easy way (without copying the existing rows to a temporary location and copying back) to add a new row to a specific index location in an existing data frame? Example df = data.frame( A= c('a','b','c'), B=c(1,2,3), C=(10,20,30)) newrow = c('X', 100, 200) I want to add the newrow as the second row to the data frame df Please suggest a solution that is
2011 Nov 12
1
With an example - Re: rbind.data.frame drops attributes for factor variables
...h Engineer (Solar/Batteries O.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > --------------------------------------------------------------------------- > Sent from my phone. Please excuse my brevity. > > Sammy Zee <szee2007@gmail.com> wrote: > > >Hi all, > > > >When I use rbind() or rbind.data.frame() to add a row to an existing > >dataframe, it appears that attributes for the column of type "factor" > >are > >dropped. I see the following post with same problem. Howe...
2011 Nov 11
1
rbind.data.frame drops attributes for factor variables
Hi all, When I use rbind() or rbind.data.frame() to add a row to an existing dataframe, it appears that attributes for the column of type "factor" are dropped. I see the following post with same problem. However i did not see any reply to the following posting offering a solution. Could someone please help.