Re: [R] Dataframes and text identifier columns

2014-07-04 Thread PIKAL Petr
-help-bounces@r- project.org] On Behalf Of Brian Willis Sent: Thursday, July 03, 2014 12:07 PM To: r-help@r-project.org Subject: Re: [R] Dataframes and text identifier columns Thank you for the suggestion What seems to work is assigning out_put$Case - Inp_dat$Case that is for(i

Re: [R] Dataframes and text identifier columns

2014-07-03 Thread PIKAL Petr
Hi What is the problem? some comments in line -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Brian Willis Sent: Wednesday, July 02, 2014 1:33 PM To: r-help@r-project.org Subject: Re: [R] Dataframes and text identifier

Re: [R] Dataframes and text identifier columns

2014-07-03 Thread Brian Willis
Thank you for the suggestion What seems to work is assigning out_put$Case - Inp_dat$Case that is for(i in 1:4) { ... Case- Inp_dat$Case[i] … out_put[i,]-data.frame(Case, stdL, stdPP, stdSE, L, PP, PP_SE) } out_put$Case - Inp_dat$Case out_put What I don't understand is

Re: [R] Dataframes and text identifier columns

2014-07-02 Thread Brian Willis
Apologies I was trying to simplify the programme and missed out four input files. The files on Andrew, Burt, Charlie and Dave have the same format of one factor and 13 numeric variables with repeated measurements eg. Study v1 v2 v3 v4 v5 v6 v7 v8 v9

[R] Dataframes and text identifier columns

2014-06-29 Thread Brian Willis
I am trying to incrementally add rows to an empty data frame. The data has 7 columns, the last 6 are numeric. For the first columns I would like to include a text identifier, called ‘Case’ like Andrew, Burt, Charlie etc. that is also output to a data frame – this is where I am having the problem

Re: [R] Dataframes and text identifier columns

2014-06-29 Thread David Winsemius
On Jun 29, 2014, at 5:46 AM, Brian Willis wrote: I am trying to incrementally add rows to an empty data frame. The data has 7 columns, the last 6 are numeric. For the first columns I would like to include a text identifier, called ‘Case’ like Andrew, Burt, Charlie etc. that is also output

Re: [R] Dataframes and text identifier columns

2014-06-29 Thread Richard M. Heiberger
Inp_dat- read.csv(/File/Input data.csv) out_put[i,]-data.frame(Case, stdL, stdPP, stdSE, L, PP, PP_SE) These two statements look like the source of the problem. Add the optional argument stringsAsFactors=FALSE to both. Rich On Sun, Jun 29, 2014 at 8:46 AM, Brian Willis b.h.wil...@bham.ac.uk

Re: [R] Dataframes and text identifier columns

2014-06-29 Thread Richard M. Heiberger
...@bham.ac.uk http://www.birmingham.ac.uk/brian-willis From: Richard M. Heiberger [r...@temple.edu] Sent: 29 June 2014 18:34 To: Brian Willis Cc: r-help Subject: Re: [R] Dataframes and text identifier columns Inp_dat- read.csv(/File/Input data.csv) out_put[i