That's strange, it does work for me.


On Sat, Feb 5, 2011 at 5:54 PM, David Winsemius <[email protected]>wrote:

>
> On Feb 5, 2011, at 9:38 PM, Ahnate Lim wrote:
>
>  thank you for the clarification, so to edit a vector I guess one might do
>> this:
>>
>> x = c(1,2,3)
>>
>> x = as.vector(edit(as.matrix(x)))
>>
>
> Did you try that? It didn't work for me, but this did:
>
>
> > x = c(1,2,3)
> >
> > x = as.vector(edit(as.matrix(x)))
> >
> > x
> [1] 1 2 3
> > x = as.vector(x <- edit(as.matrix(x)))
> > x
> [1] 1 4 3
>
> Generally one needs to assign the result of edit() to <something>.
> --
> David.
>
>>
>>
>>
>>
>>
>> On Sat, Feb 5, 2011 at 3:14 PM, Simon Urbanek
>> <[email protected]>wrote:
>>
>>
>>> On Feb 5, 2011, at 1:42 PM, Ahnate Lim wrote:
>>>
>>>  Hello,
>>>>
>>>> I am confused, is there a GUI data editor that can be invoked by edit()?
>>>>
>>>
>>>
>>> Yes.
>>>
>>> For example
>>> m=edit(matrix(0,4,4))
>>> or
>>> d=edit(iris)
>>>
>>>
>>>  I am looking at the book R in a Nutshell, and there is a picture of a
>>>>
>>> nice
>>>
>>>> spreadsheet that should come up. When I use edit() all I get is a text
>>>> editor?
>>>>
>>>>
>>> It means that you're trying to edit something that doesn't fit a
>>> spreadsheet.
>>>
>>> Cheers,
>>> Simon
>>>
>>>
>>>
>>>
>>        [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> [email protected]
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>
> David Winsemius, MD
> West Hartford, CT
>
>

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to