Re: [R] Renaming Within A Function

2011-12-22 Thread Greg Snow
The error is because you are trying to assign to the result of a get call, and nobody has programmed that (hence "could not find function") because it is mostly (if not completely) meaningless to do so. It is not completely clear what you want to accomplish, but there is probably a better way t

Re: [R] Renaming Within A Function

2011-12-22 Thread jim holtman
Why do you want to create a variable within the function since it will disappear after the return. Is there a reason for that? Here is one way of getting the names by just using them on the cbind. Also you are create a 'matrix' and 'names' is not appropriate for that type of object. > # Test Fu