BostonR wrote:
>
> This should be very simple but I am wrestling with updating a data frame
> from within a function. Here is a simple example:
> ### SET UP DATA FRAME
>> tFrame <- data.frame(T=c(1:5))
>>
>> tFrame
> T
> 1 1
> 2 2
> 3 3
> 4 4
> 5 5
>>
> # Simple function that updates w
This should be very simple but I am wrestling with updating a data frame from
within a function. Here is a simple example:
### SET UP DATA FRAME
> tFrame <- data.frame(T=c(1:5))
>
> tFrame
T
1 1
2 2
3 3
4 4
5 5
>
# Simple function that updates with 1000
> tUpdate<- function (x){
+ tFrame$
2 matches
Mail list logo