Displaying 3 results from an estimated 3 matches for "resultsdataframe".
2009 Jan 27
1
Mystery Error in midnightStandard
...-%m-%d")
date1
dow = 3;
for (i in 1:length(V4) ) {
x = read.csv(as.character(V4[[i]]), header = FALSE, na.strings="");
y = x[,1];
year = V2[[i]];
week = V3[[i]];
dtstr = sprintf("%i-%i-%i",year,week,dow);
date2 = timeDate(dtstr, format = "%Y-%U-%w");
resultsdataframe$dt[[i]] <- difftimeDate(date1,date2,units = "weeks");
fp = fitdistr(y,"exponential");
print(c(V1[[i]],V2[[i]],V3[[i]],fp$estimate,fp$sd));
print(c(year,week,date2,resultsdataframe$dt[[i]]));
resultsdataframe$estimate[[i]] <- fp$estimate;
resultsdataframe$sd[[i]]...
2010 Apr 28
0
Error loading RMySQL
..., when I run it again, on new data, the script works fine until it is
supposed to store its results in my DB. In actuality, I have a perl script
that does an initial preparation of the data, and then invokes the R script
- all of which work fine).
The very last five lines of my script are:
print(resultsdataframe);
library(RMySQL);
con <-
dbConnect(MySQL(),user="rejbyers",password="jesakos",dbname="merchants2");
dbWriteTable(con,"results",resultsdataframe);
dbDisconnect(con);
The print statement works fine, and shows me the results I expected. But
library(RMySQL...
2009 Jan 28
2
t.test in a loop
Hi All,
I've been having a little trouble with creating a loop that will run a a
series of t.tests for inspection,
Below is the code i've tried, and some checks i've looked at.
I've used the get(paste()) idea as i was told previously that the use of the
eval should try and be avoided.
I've run a single syntax to check that my systax is correct and works
without any problems