st to write.csv which works
> on matrices or data frames (or attempts to coerce to such). The
> easiest answer is probably to write each element of "ds" (that is,
> each data frame) to a separate file.
>
> Cheers,
>
> Josh
>
> On Sun, May 22, 2011 at 12:11 P
s...@gmail.com
> To: ruimax...@hotmail.com
> CC: r-help@r-project.org
>
> Hi Rui,
>
> data frames must have the same number of rows, but two different data
> frames stored within a list do not need to have the same number of
> rows. Can you please post the code that is giving t
)
> })
>
> all.equal(ds, altds)
>
> For some documentation, see
>
> ?vector
> ?lapply
>
> Cheers,
>
> Josh
>
> On Sat, May 21, 2011 at 10:47 AM, Rui Maximo wrote:
> >
> > Hello,
> >
> > I am newbie to R and I want t
Hello,
I am newbie to R and I want to do this:
for(i in 1:6)
{
ds[i] <- list(df=data.frame(oilDF[,1],oilDF[,i+2]),
df2=data.frame(oilDF2[,1],oilDF2[,i+2]))
}
#oilDF and oilDF2 are 2 data frames with several columns. They have different
number of rows
#I want to have for example ds[1
4 matches
Mail list logo