similar to: Opening all files in a directory

Displaying 20 results from an estimated 1100 matches similar to: "Opening all files in a directory"

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.
2001 Sep 24
1
Problem with read.table and scan
I have just installed R on a Windows NT system. Unfortunately I am unable to open any of the data files I wish to work with. I have tried using read.table and scan and to the best of my knowledge am using the correct syntax. The error message I receive is Error in file(file, "r") : cannot open file [file name] I have the data in text files in white-space delimited form. I put them
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
2001 Oct 18
1
Sgeostat module
Dear Users, I use Sgeostat to calculate co variogram (function est.variogram with two variables). If i inverse the 2 variables in the functions, the co variogram change! Normaly it is symmetric, isn't it? Someone could me explain why, or give me an idea to calculate co variogram in a easy way... Thanks in advance Laurent ps : sorry for my english Laurent William Dubroca Centre de
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
2001 Nov 18
1
plotting overlapping data points
I am just learning to use R. The data from my current project are integer-valued. I am able to create scatterplots, but I would like to have some indication on the plots when multiple data points overlap at the same x-y coordinate. SPSS uses 'petals', and other packages use jitter. Are there similar options in R? I have not been able to find any in the documentation. Thanks very much,
2001 Oct 10
1
Importing many files
Hello Cracks, we want to import 10 x 365 files containing each 7 variables with 1211 rows. The filenames end with numbers from 1 to 365. We tried a for loop to import using read.table but we couldn't create the r objects within the loop. We want each file in an own r-objekt (matrix). Does anyone know what can be done? Thanks, Felix -- Felix Tiefenbacher Eidg. Institut f?r Schnee- und
2001 Aug 15
1
Re: R: Mailing Lists
Is it true that append=T does not work in assignTable() in RMySQL ? More specifically: I cannot append a data.frame to an existing table in a MySQL database, although I can use the same data.frame to create a new table. Even more specifically: > assignTable(con,"employee",dita,append=T) Error in execStatement.MySQLConnection(con, statement, ...) : RS-DBI driver: (could not
2001 Dec 07
2
Help for Linear Discriminant Analysis
Dear colleague, I'd like to compute linear discriminant analysis, using R. In the book Modern applied statistic with Splus (Venables & Ripley, p. 396), lda function is used. Could you tell me where I can find this function? At what site, can I download this library ? Thank for your help. Best Regards Sovan ---------------------------------------------------------------- Prof. Sovan
2002 Feb 19
2
No subject
Hi, I'm a new R users (although I have a little experience with S+). I am using the latest version (1.4.1) of R on a Windows 2000 system. I have obtained several of the additional R packages ("modules") and would like to know how to permanently install them. What I am after is something similar to the following in S+ > .First <- function() { module("module_name")
2001 Aug 13
3
subset syntax
Can anyone tell me what's wrong with this command?? xx<-subset(x,LOCAL.NAME==c("Chifumbata","Chikota"),select=c(13,16,19,23,26,2 9,30,33:48)) Warning message: longer object length is not a multiple of shorter object length in: LOCAL.NAME == c("Chifumbata", "Chikota") both of the following commands work fine
2001 Sep 06
2
overlay plots
Hi all! I new to R (I don't know anything about S+ either!) I've a simple question: How do I generate overlay plots in R? So far as I can see the plot(x, y) operator will only give me one graph and the plot(x ~ y + z) will give me 2 separate plots. Is there an easy way to overlay or am I missing the obvious? Any help welcome. Gerard Keogh The information in this email, and any
2002 Feb 26
1
Cross-tabulation of data from database
I am quite new to R, so please bear over with me if I have problems with the R terminology. I want to (try to) use R for some analyses within vegetation ecology, using the vegan package. I have my data in a postgresql database, and I manage to get them into R as a dataframe with columns for respectively: Name of the analysed m2, Name of the species, coverage of species in the square in %. I
2002 Aug 09
2
RMySQL fetch defaults to N=500?
It appears that fetch() gets only the first 500 rows by default. I don't see this in the documentation, but timeinfo <- fetch(rs) gets only 500 rows where timeinfo <- fetch(rs,n=-1) gets (correctly) 736 for the same query. Is this an undocumented feature? I played with this data for an alarming amount of time before I realized that I was missing a third of the data. I
2002 Nov 26
2
URGENT Help required
I've the following problem: The below function runs a loop with regression analysis and stores F-Stat in a matrix. When I call the matrix elements (models[i,j]) in the function I get proper results, but when I try to call the same elements outside the function the matrix appears to be empty e.g when I call compt inside the function I get: 5 but when I call it outside I get: 1. This is the
2001 Oct 16
5
help me
Hy, I have dowloaded the R-version for Windows. I would want to plot different pictures on the same device, but I am not able to do it (i.e I would like make 2 qqplot on the same graphic). Can you help me? Thanks in advance Davide reply to: d.tarfanelli at libero.it -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2002 Aug 21
4
A layman seeks help!
I have been given a 'code' file and a 'data' file which is designed for use in R. I have successfully installed the program onto my pc, but am struggling to actaully use the code. How do i prompt R to read the code file and run? Any ideas? Many thanks Mark ____________ Mark Edwards mark at miic.org.uk ******************************************** DISCLAIMER: The
2002 May 27
3
functions and getting them into R
Dear All, I am new to R and can see it is a very powerful and versatile system for programming and statistical analysis. Say I have written a simple function and want to use it on a regular basis. I have the file as a text file say 'c:\R-funcs\func.txt' how do I get R to find it on the hard disc or alternatively where is the default location for looking up functions where I can place
2001 Jul 26
6
replacing values in a vector
Hi all, there is a vector v with several NAs. I want to create a new vector n of the same length as v and the same NAs as in v and tried this: n <- vector(length=length(v), mode="numeric") replace(n, which(is.na(v)), NA) but this does't work, all values in n are 0. What went wrong? Thanks, Sven -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2001 Oct 24
9
easy graphic question
Hi! How do I specify a filled point in a scatterplot? Their size? plot(x,y) just gives "empty" points like "o". I want a full black point. TIA -- myriam -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info",