search for: datafilename

Displaying 19 results from an estimated 19 matches for "datafilename".

2007 Mar 27
0
Error when calling residual.plots() on an ANOVA object
...iz) != "factor") { > I think that there is some issues when processing the "instance" factor (the levels are names of instances). Could somebody give me a hand to understand what is going on? This is the script I use to make the analysis: -----= BEGIN R SCRIPT =----- datafilename="http://landau.ulb.ac.be/~mmanfrin/ANOVA/noLS/ kroA100_4CPU_1000.best" instance1_4<-read.table(datafilename,header=TRUE) datafilename="http://landau.ulb.ac.be/~mmanfrin/ANOVA/noLS/ kroA100_8CPU_1000.best" instance1_8<-read.table(datafilename,header=TRUE) datafilename=&qu...
2011 Jan 06
8
Accessing data via url
# Can anyone suggest why this works datafilename <- "http://personality-project.org/r/datasets/maps.mixx.epi.bfi.data" person.data <- read.table(datafilename,header=TRUE) # but this does not? dd <- "https://sites.google.com/site/jrkrideau/home/general-stores/trees.txt" treedata <- read.table(dd, header=TRUE) ==...
2011 Mar 23
2
) Error in eval(expr, envir, enclos) : object '' not found
> datafilename="E:/my documents/r/sex/bysex1.csv" > data.sex=read.table(datafilename,header=T) > data.sex y.sex.age.region.c.n 1 1980,F,A,N,-18.15,13.61 2 1980,F,A,N,-18.61,13.04 3 1980,F,A,N,-18.81,12.32 4 1990,F,A,N,-21.12,11.7 5 1990,F,A,N,-20.77,11.58 6 1990,F,A,N,-21.6,13...
2010 Sep 20
2
interpreting one-way anova tables
Hi, I am trying to reconcile anova table in R (summary(lm)) with individual t.test. datafilename="http://personality-project.org/R/datasets/R.appendix1.data" data.ex1=read.table(datafilename,header=T) #read the data into a table summary(lm(Alertness~Dosage,data=data.ex1)) gives: Call: lm(formula = Alertness ~ Dosage, data = data.ex1) Residuals:    Min     1Q Median     3Q    Max...
2012 Jan 15
0
Reading MINE output into a matrix
...hich turns a given MINE output column (in the case below, the third column corresponding to "MIC") into a matrix. Hope it helps, Matt #needed for MINE routine require(rJava) #load market data require(PortfolioAnalytics) data(indexes) #write CSV file of data to current working directory datafilename <- "indexes.csv" write.table(indexes, datafilename, sep=",", col.names=TRUE, row.names=FALSE, quote=FALSE, na="NA") #read MINE R code source.with.encoding('MINE.r', encoding='UTF-8') pairs_method <- "all.pairs" max_num_boxes_exponent &lt...
2010 May 10
1
how to get p-value from ave
Hi there, I checked google for aov. usually one uses summary to see whether the p-value is small. but I want to put aov in my script. how can I get the p-value, (0.1115, 0.6665, 0.6665 in the following example)? thanks YU > datafilename="http://personality-project.org/r/datasets/R.appendix2.data" > data.example2=read.table(datafilename,header=T) > aov.ex2 = aov(Alertness~Gender*Dosage,data=data.example2) > summary(aov.ex2)               Df  Sum Sq Mean Sq F value Pr(>F) Gender         1  76.562  76.562  2.95...
2006 Dec 08
2
any way to make the code more efficient ?
...down significiantly and I think I remember reading somewhere that doing an rbind of something to itself is not a good idea. Thanks. #======================================================================= =============================================== start<-1 for (filecounter in (1:length(datafilenames))) { print(paste("File Counter = ", filecounter)) datafile= paste(datadir,"/",datafilenames[filecounter],sep="") aggfxdata<-clnaggcompcurrencyfile(fxfile=datafile,aggminutes=aggminutes, fillholes=1) logbidask<-log(aggfxdata[,"bidask"]) aggfxdata<...
2012 Jun 10
1
compute Mcdonald's omega ω
...and http://personality-project.org/r/r.omega.html But I'm still not sure how to do it. Can someone correct me what I have gone wrong. I'm following the instruction from this site and I have downloaded the psych package- http://personality-project.org/r/ *1. Load and read the data* datafilename <- file.choose() # use the OS to find the file person.data <- read.table(datafilename,header=TRUE) #read the data file *2. Use the code examples from http://personality-project.org/r/r.omega.html* Copy and paste the whole code from this website in the R console I know I must ha...
2009 Nov 08
2
Simple 2-Way Anova issue in R
....562 2.9518 0.1115 Dosage 1 5.062 5.062 0.1952 0.6665 Gender:Dosage 1 0.063 0.063 0.0024 0.9617 Residuals 12 311.250 25.938 However, when I got to use my data that I made in csv format I have to tell R to interpret my factors which are year and depth as factors... datafilename="C:/Rclass/hmwk1pt2.csv" data.ex2=read.csv(datafilename,header=T) data.ex2$Year<-as.factor(data.ex2$Year) data.ex2$Depth<-as.factor(data.ex2$Depth) data.ex2 str(data.ex2) This outputs what I would expect: > str(data.ex2)...
2004 Jun 17
2
Question on lists and vectors of lists
...ction? I have a function which will run for thousands of companies. At each invocation, it returns 2 numbers. I plan to do something like: think_one_firm <- function(filename) { # Do stuff return(list(x=x,y=y)) } So for each of the firms in my dataset, I will call think_one_firm(datafilename) and it will give me back two numbers x and y. I could say: l = think_one_firm("blah") print(l$x); print(l$y); and all would be fine. What I want to do is: To tuck away the returned lists into a vector or a data frame. At the end, I would like to endup with a data structure allfir...
2010 Jan 06
2
problem with strptime and 2010 dates
Hi, I'm reading data from a text file and transforming it in R and my date column seems to be getting corrupted. Can someone point out what's wrong? This code worked fine until I added a new date in 2010. thank you. To load the data I run: work_table = read.table(datafilename,header=TRUE) #read the data file attach(work_table) #attach the file for ease of use names(work_table) = c( "cur_date", "week", "time_pct", "compl", "work_delta", "mean_delta&...
2001 Oct 23
1
HOMM3 and DirectPlay
...(with fake windows), attempting to run the game came up with the 'unable to initialize resources - possible disk problem'. Examination of the output of wine --debugmsg +relay,+text,+string Heroes3.exe indicates that the game is looking for the data files (located in a Data subdirectory) as Datafilename, rather than Data/filename. After copying the data files to the root installation directory and prepending 'Data' to the filename, the game starts and runs correctly. However, networking seems to be broken - attempting to create a TCP/IP game results in the following error: DirectP...
2006 Jul 28
2
negative binomial lmer
...However, for negative binomially distributed data, I need to estimate the parameter theta. I have been doing this by using a negative binomial glm of the same model (except that all the effects are fixed), and estimating mu as the fitted model like so: model_1 <-glm.nb(y~x1+x2+x3, data = datafilename) mu_1 <- fitted(model_1) theta_1 <- theta.ml(y, mu_1, length(data), limit = 10, eps = .Machine$double.eps^0.25, trace = FALSE) Then, I conduct the lmer, using the estimated theta: model_11 <-lmer(y~x1+x2+(1|x3), family = negative.binomial(theta = theta_1, link = “log”), me...
2024 Mar 22
1
Error message
Hi all, I am creating an X1.RData file using the R 4.2.2 library. x1.R save(datafilename, file="X1.RData") When I am trying to load this file using another script X2.R load("X1.RData") I am getting this error message: Error in load("X1.RData", : bad restore file magic number (file may be corrupted) .. no data loaded. I am using the same R library...
2024 Mar 22
1
Error message
Here is the first few bytes, xxd -l 128 X1.RData 00000000: 8d5a 35f8 1ac5 cc14 a04e be5c 572f a3ad .Z5......N.\W/.. 00000010: 6210 7024 9b58 93c7 34d0 acb7 7a82 3f99 b.p$.X..4...z.?. 00000020: 66ce 0ebb 2057 ec36 55b4 0ece a036 695a f... W.6U....6iZ 00000030: 258b 3493 b661 f620 f7fe ada7 158a 15f7 %.4..a. ........ 00000040: e016 a548 6fcb 20c8 6fb4 493d adc9 ea4a ...Ho. .o.I=...J 00000050:
2006 Oct 18
0
(no subject)
...-16 09:00:04,1.00,30.69,0,0.99,1.01,12.00,1.01,0 2006-10-16 09:00:05,2.00,26.00,0,0,1.98,15.00,1.98,0 2006-10-16 09:00:06,1.98,25.25,0,0,1.00,12.00,0,0 Etc. To get the information I need I run the following: library(its) its.format("%Y-%m-%d %H:%M:%S") x<-its(readcsvIts("datafilename")) quantile(x[,1],c(.99)) quantile(x[,2],c(.99)) etc. On the older version it returns the proper values, but on the new install I get the following error: > quantile(x[,1],c(.99)) Error in validObject(.Object) : invalid class "its" object: Dates must be non-decreasing...
2010 Aug 06
2
How to read a file inside a function?
Hi I wish to read a file from my local directory from inside a function. I am passing the filename as the argument but this does not work. Say for example function(dat) { dat1=read.csv("D:\\dat.csv",header=TRUE) } If I call funtion(dat) I get the following error. 'Intuitively' i understand this is a mistake but how do I overcome this and how can I read a file name passed as an
2006 Oct 18
0
R issue with quantile using its package
...2.00,26.00,0,0,1.98,15.00,1.98,0 > > 2006-10-16 09:00:06,1.98,25.25,0,0,1.00,12.00,0,0 > > Etc. > > > > To get the information I need I run the following: > > library(its) > > its.format("%Y-%m-%d %H:%M:%S") > > x<-its(readcsvIts("datafilename")) > > quantile(x[,1],c(.99)) > > quantile(x[,2],c(.99)) > > > > etc. > > > > On the older version it returns the proper values, but on the new > install I get the following error: > >> quantile(x[,1],c(.99)) > > Error in validO...
2004 Jan 25
1
Samba] Samba3 Printer drivers installation
..."NULL", or a list of additional driver files *separated by commas*. All this 8 fields must be filled in, none may be empty (in which case the "NULL" needs to go in), and they need to be filled in in the correct order. The correct order is this: LongDriverName:DriverFileName:DataFileName:ConfigFileName:HelpFileName:LanguageMonitorName:DefaultDataType:Comma-Separated-list-of-Files The LanguageMonitorName field should contain "NULL". The DefaultDataType for Samba and NT72K/XP clients is "RAW". To find out which files are which type, use one of these commands to q...