search for: mpb170

Displaying 6 results from an estimated 6 matches for "mpb170".

2002 Jun 12
4
Opening all files in a directory
Is there any way that R can be programmed so that it will cycle through all files in a directory without having to define file names? The reason I ask is because I will have about 50-100 files in a directory which will be randomly named. ie: MIDEX, OACES-CO2, ODEN91, etc... If not...are there any languages out there that will do this sort of things? Or is there another method you could
2002 May 21
2
Unwanted Levels in R
I searched the mailing list archives and found one post relevant to my problem, but it was not specific enough to solve my problem. I am reading in a large file of data (I believe it is in ASCII format). I have tried reading the file in as a data frame and as a list, and both methods result in unwanted levels being created which leads to problems when I try to copy or reference certain cells.
2002 Jun 13
1
problem with read.fwf
Here is an example of the data I'm reading in using read.fwf: 5342.0 5450.4 0.9200 0.4506 34.7030 27.8411 37.1306 46.0034 0.0000 5438.0 5549.6 0.9300 0.4477-34.7280 27.8616 37.1506 46.0234 0.0000 And the commands I'm using to read it in: widths <- c(7,7,8,8,8,8,8,8,8) filedata <- read.fwf(fileopen, widths,sep="",dec=".") The problem is with
2002 Jun 06
1
Dealing with data of varying format
I'm trying read some data files into data frames, but the formatting of their headers is creating problems when I try to reference certain columns. For instance...below I've pasted four of the headers to give an idea how they vary slightly. A 90404001 POLARSTERN GERMANY MIZEX A 819300 HUDSON CANADA
2002 May 28
0
Complitation Error
I'm attempting to run a function that I wrote by first typing: >cruisesort <- emacs(function(){}) then pasting my function code into the window. When I exit the window I receive the following compilation error. >Error in edit(name, file, editor): An error occured on line 71 Line 71 reads as follows: cruisenames <- c("cruise names") I'm not sure exactly what the
2002 May 31
1
2 Seemingly Simple Problems
Alright...these two issues seem rather simple. But I had trouble finding much about either of them in the archives. 1) Using scan() I'm trying to use scan to read in a large data set since read.table() is taking quite a bit of time. But when I try to do this I receive a error message along the lines of "Character where numeric expected." Seems to me the problem is arising