[R] Creating loops with strings

2009-09-22 Thread Rakknar
Hello. I'm trying to run a series of commands in two different datasets. For make it efficient I want to make a loop for it. Until now the only command for loops i found it's the for() command it's only for series of numbers and not a series of strings, witch it's what i'm needing. It would be som

[R] Problem Plotting Production Panel Data

2009-09-16 Thread Rakknar
Hello. I'm kind of new in R so you please forgive me if this is something really easy to but but i still don't find the solution. I want to plot a time series of production of several firms extracted from a panel data structure. I've tried with Stata but the most i achieved it's to plot a single

Re: [R] Several simple but hard tasks to do with R

2009-08-20 Thread Rakknar
Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Rakknar >> Sent: Thursday, August 20, 2009 9:00 AM >> To: r-h

Re: [R] Several simple but hard tasks to do with R

2009-08-20 Thread Rakknar
"This is why sink() has the split=TRUE option, which logs output to a connection and sends it to the screen. The R sink("analysis.log",split=TRUE) is almost identical to the Stata log using analysis.log with sink() to close the log and flush to disk at the end of the session." I've alre

Re: [R] Several simple but hard tasks to do with R

2009-08-20 Thread Rakknar
Bert: Thanks for your help. I'll try to clarify some of your doubts "1. logs. help.search("history") and ?savehistory shows you that R does exactly what you want very easily (depending on the platform, which contrary to the posting guide's request, you did not tell us)." I've already find out a

Re: [R] Several simple but hard tasks to do with R

2009-08-20 Thread Rakknar
"To echo what others have said, it is often easier to write a script (in STATA terms, a "do" file) of commands and then "source" the script. When it runs to your satisfaction, usually not the first time for me, there are several ways to store the output. Both the R2HTML and prettyR packages co

[R] Several simple but hard tasks to do with R

2009-08-19 Thread Rakknar
Hello everybody. I've been learning R for about a month to do a econometric study and now i'm stuck with some problems to make R do the things I want. Here I give the list of things I wanna do from the most simple to the more complex (for me of course): 1. Make a log. I've been using Stata an