[R] Business Data Sets

2008-11-26 Thread nmarti
Can someone please help me, or point me in the right direction, to find some “Business” data sets. In the next couple of weeks I will be teaching a “small business” class/seminar, and my intensions are to preach the importance of collecting data on business operations and how to analyze that data

Re: [R] Rprintf will not build in my C++ compiler

2008-07-30 Thread nmarti
R Extensions'. For that code to be any use with R, it has > to have a C and not C++ entry point 'hello'. > > On Wed, 30 Jul 2008, nmarti wrote: > >> >> I have searched through the threads and "Rprintf" causing a build error >> dosen'

[R] Rprintf will not build in my C++ compiler

2008-07-30 Thread nmarti
I have searched through the threads and "Rprintf" causing a build error dosen't seem to be a problem for anyone else. And I've read through "R Extensions" and "An Introduction to the .C Interface to R" and there doesn't seem to be any troubleshooting for my problem. My code is straight from "An

Re: [R] Dividing by 0

2008-07-25 Thread nmarti
I'm well aware these are not errors, I guess I miss-wrote. I understand your concern. Thanks for passionately looking out for my well being, you saved my life. My variable has about 10,000 elements and sometime for the first 100 to 500 elements there is lots of 0's, so I end up with lots of NA/N

[R] Dividing by 0

2008-07-24 Thread nmarti
I'm trying to calculate the percent change for a time-series variable. Basically the first several observations often look like this, x <- c(100, 0, 0, 150, 130, 0, 0, 200, 0) and then later in the life of the variable they're are generally no more 0's. So when I try to calculate the percent c

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread nmarti
Std.Error=std.error(x), Std.Deviation=sd(x), >Kurtosis=kurtosis(x)) > } > > Gabor > > On Wed, Jul 09, 2008 at 08:15:00AM -0700, nmarti wrote: >> >> I'm looking for a function that lists a few summary stats for a column >> (or >> row) of data. I

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread nmarti
t;Kurtosis=kurtosis(x)) > } > > Gabor > > On Wed, Jul 09, 2008 at 08:15:00AM -0700, nmarti wrote: >> >> I'm looking for a function that lists a few summary stats for a column >> (or >> row) of data. I'm aware of summary(x), but that does not gi

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread nmarti
Thanks for your replies. basicStats(x) in "fBasics" is exactly what I was looking for. > > nmarti wrote: > > I'm looking for a function that lists a few summary stats for a column (or > row) of data. I'm aware of summary(x), but that does not give me wha

[R] Summary Stats (not summary(x))

2008-07-09 Thread nmarti
I'm looking for a function that lists a few summary stats for a column (or row) of data. I'm aware of summary(x), but that does not give me what I'm looking for. I'm actually looking for something that is very similar to the descriptive statistics tool in excel; i.e. Mean, Std. Error, Std. Deviat

Re: [R] Delete Block of Rows

2008-06-16 Thread nmarti
" as a input argument on > a function because "data" is a pre-defined function. > Kind regards, > > miltinho > > > > On 6/15/08, nmarti <[EMAIL PROTECTED]> wrote: >> >> >> I am trying to delete a section of rows from a data frame (bas

[R] Delete Block of Rows

2008-06-15 Thread nmarti
I am trying to delete a section of rows from a data frame (based on no condition). Lets say my data frame has 200 rows and I want to delete rows 1 through 25. How would I do this? I know x[ -1, ] deletes the first row (or any desired row). I tried using different variations of this, like x[ -c

[R] rollingRegression() Problem / Error in nrow(x)

2008-06-10 Thread nmarti
I am tring to use the rollingRegression function from PerformanceAnalytics. When I apply the function to R stock data (Boston), the function works fine. But when I try to apply it to data that I imported from excel, using xlsReadWrite, I recieve an error message: > Error in nrow(x): subscript o

Re: [R] R-Excel Macro Problem

2008-05-25 Thread nmarti
lease email me your excel workbook. thanks > y > > nmarti wrote: >> >> I'm trying to write R functions into VBA code. I've done this many other >> times in other documents and everything has run great. But today I keep >> recieving an error message "

Re: [R] R-Excel Macro Problem

2008-05-25 Thread nmarti
ummary(lm(model))$adj.r.squared", Range("OutPut!G4")) End Sub I'm still looking for the problem. I'm beginning to think it dosen't have anything to do with code. I think there's a problem with the com server or something else. Thanks for the help. Yas

[R] R-Excel Macro Problem

2008-05-24 Thread nmarti
I'm trying to write R functions into VBA code. I've done this many other times in other documents and everything has run great. But today I keep recieving an error message "Run-time error '1004': Application-defined or object-defined error." Has anyone else encountered this same error message?