Re: [R] inserting row(column) in array or dataframe at specified row(column)

2016-05-02 Thread PIKAL Petr
lp-boun...@r-project.org] On Behalf Of Jan Kacaba > Sent: Sunday, May 1, 2016 7:54 PM > To: r-help@r-project.org > Subject: [R] inserting row(column) in array or dataframe at specified > row(column) > > Hello dear R users, > > Is there a function or package which can insert row

Re: [R] inserting row(column) in array or dataframe at specified row(column)

2016-05-01 Thread David Winsemius
> On May 1, 2016, at 10:53 AM, Jan Kacaba wrote: > > Hello dear R users, > > Is there a function or package which can insert row, column or array in > another array at specified place (row or column)? > > I have made several attempts at this function optimizing both speed, code > readability a

Re: [R] inserting row(column) in array or dataframe at specified row(column)

2016-05-01 Thread Tom Wright
If you can address your columns by name then order shouldn't matter. If the column order does matter, perhaps a matrix is a better structure to use? On Sun, May 1, 2016, 10:56 AM Jan Kacaba wrote: > Hello dear R users, > > Is there a function or package which can insert row, column or array in >

[R] inserting row(column) in array or dataframe at specified row(column)

2016-05-01 Thread Jan Kacaba
Hello dear R users, Is there a function or package which can insert row, column or array in another array at specified place (row or column)? I have made several attempts at this function optimizing both speed, code readability and ease of use. The functions are of following format: appcol=funct