Re: [R] Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer'

2010-05-23 Thread sedm1000
Thanks for your time with this. Erik's solution works best to deal with the input... I'll try to reshape the output back into the appropriate columns. David, fold(sq$s1) only outputs the result for the first sequence in the list I'm afraid. The 'fold' function doesn't deal well with spaces... Th

Re: [R] Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer'

2010-05-22 Thread sedm1000
Sorry - I figured that this to be a more common defined error than anything specific to the data/function... Thanks for looking at this. The data and function are below. Creating a single line of the data.frame at a time will work (i.e. fold(s)) For multiple line data.frames, an error is genera

[R] Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer'

2010-05-21 Thread sedm1000
I am receiving this error running a command on a multi-row data-frame. The data is strings of text (each with new line separator, no spaces, no numerical characters). Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer' I can run single text str

Re: [R] Reading in and writing out one line at a time

2010-05-21 Thread sedm1000
Hi, Thanks for you insight. the problem that I have is that the program reports back an error: Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer When I try to read in a multi-row frame, and so I can only feed in one row at a time. The data

[R] Reading in and writing out one line at a time

2010-05-19 Thread sedm1000
I hope that somebody can help me with this - I think very simple - issue...? I am running a package that only accepts one line at a time, but I would like to run this package on a dataframe of >500 lines. Dataframe "d" is a single column: APPLES PEARS AUBERGINES KUMQUATS I would like to read

Re: [R] Select subset with specific distribution parameters.

2009-08-10 Thread sedm1000
I'm sorry, an example needed a lot of data, hence I skipped it. I've settled for taking random sets from within a defined range to simulate the potential distributions and to calculate a rough significance value from that... Thanks for your help. -- View this message in context: http://www.nab

[R] Select subset with specific distribution parameters.

2009-08-06 Thread sedm1000
This may be a simple problem, but I am looking to select a subset of rows from a dataframe that will have the same parameters as all the rows in another dataframe. e.g. I have a 500 row dataframe with 20 columns. I want to select a subset of rows from a larger dataframe that match the distributi

Re: [R] Re flect Back to Back Histograms in x-axis?

2009-06-08 Thread sedm1000
Thanks very much for that, most useful... Ted.Harding-2 wrote: > > On 08-Jun-09 13:11:03, sedm1000 wrote: >> I've looked long and hard for this, but maybe I am missing something... >> >> There is a nice module that displays histograms reflected i

[R] Re flect Back to Back Histograms in x-axis?

2009-06-08 Thread sedm1000
I've looked long and hard for this, but maybe I am missing something... There is a nice module that displays histograms reflected in the y axis, i.e. http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=136 but is it possible to reflect in the x-axis, so to have two datasets, one pointi

Re: [R] Table of Summaries

2009-06-03 Thread sedm1000
Thanks for all your help guys - turns out it was a very simple request, table1<-table(DF$COLUMN1,DF$COLUMN2) did the trick. I've much to learn... Cheers. sedm1000 wrote: > > Apologies for the novice question, but this is likely beyond my google > searching range.. &g

[R] Table of Summaries

2009-06-02 Thread sedm1000
Apologies for the novice question, but this is likely beyond my google searching range.. I am trying to create a table from the summaries of a file. The 2 column data table looks like; Harry 335/335 Harry 124/506 Harry 124/506 Dick 133 Tom335/335 Tom335/3