sedm1000
2010-May-21 23:41 UTC
[R] Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer'
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 string into the same command, and so the issue seems to be how the package deals with the second row - but I can't work out quite where the deficit is. If anybody has spotted this error before, and knows how to resolve it, that would be much appreciated. Cheers. R version 2.11.0 (2010-04-22) i386-apple-darwin9.8.0 locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] GeneRfold_1.6.0 GeneR_2.18.0 -- View this message in context: http://r.789695.n4.nabble.com/Error-in-FUN-X-1L-STRING-ELT-can-only-be-applied-to-a-character-vector-not-a-integer-tp2226811p2226811.html Sent from the R help mailing list archive at Nabble.com.
Erik Iverson
2010-May-22 01:21 UTC
[R] Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer'
Hello, PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. We don't know the function you're using or the data you applied the function to, which makes it almost impossible to help. Can you use ?dput to output the data.frame you're experiencing trouble with, and the function definition you're using to give us a reproducible, self-contained example? sedm1000 wrote:> 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 string into the same command, and so the issue seems > to be how the package deals with the second row - but I can't work out quite > where the deficit is. > > If anybody has spotted this error before, and knows how to resolve it, that > would be much appreciated. > > Cheers. > > R version 2.11.0 (2010-04-22) > i386-apple-darwin9.8.0 > > locale: > [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] GeneRfold_1.6.0 GeneR_2.18.0 >
Possibly Parallel Threads
- Table of Summaries
- Reading in and writing out one line at a time
- Error: STRING_ELT() can only be applied to a 'character vector', not a 'builtin'
- Select subset with specific distribution parameters.
- CHAR(STRING_ELT( - OK but CHAR(asChar(STRING_ELT( - not, why?