Thank you all, Bert, Jeff, Bill an Don. I realized I made a silly
mistake in list indexing. Once I saw Bills’ suggestion and was able to
wrap my head around indexing recursive lists, I resolved the problem.
For future readers, here is the answers, even though the question may
not have been clear. I
It appears that at the bottom of the nesting, so to speak, you have a character
matrix.
That is, the contents of the [[1]][[1]][[1]] element is a character matrix
that, according to the row and column labels, has 4 rows and 5 columns.
However, the matrix itself, as printed, has, apparently, 4 col
Since you cannot show the data you have have to learn some R debugging
techniques.
Here is some data that look something like yours and I want to delete rows
of character
matrices whose first entry starts with a space.
FF <- lapply(1:2,function(i)lapply(1:3, function(j) lapply(1:2,
function(k)
A partial dput is no help at all. A complete dput of part of your data is much
more likely to be helpful, but only if you see the same problem in it as you do
in the full data set.
As to private data... if you want data handling help in a public forum then you
need to create a small set of data
Thank you Jeff and Bert. I know i have to use dput add provide a
reproducible example. The problem is that the output,is huge, has many
nested lists, and the info is private.
Here is the first line of dput(FF) if it helps:
dput(FF)
list(list(list(structure(c("12/30 12/30", "01/02 01/02", "01/02 0
Can you supply the output of
dput(FF)
?
On November 2, 2018 8:00:08 AM PDT, Ek Esawi wrote:
>Hi All,
>
>I have a list that is made up of nested lists, as shown below. I want
>to remove all rows in each sub-list that start with an empty space,
>that’s the first entry of a row is blank; for examp
If you learn to use dput() to provide useful examples in your posts, you
are more likely to receive useful help. It is rather difficult to make much
sense of your messy text, though some brave soul(s) may try to help.
Bert Gunter
"The trouble with having an open mind is that people keep coming al
Hi All,
I have a list that is made up of nested lists, as shown below. I want
to remove all rows in each sub-list that start with an empty space,
that’s the first entry of a row is blank; for example, on
[[1]][[1]][[1]] Remove row 4,on [[1]][[1]][[3]] remove row 5, on
[[1]][[2]][[1]] remove row 6,
8 matches
Mail list logo