similar to: replacing values in a vector

Displaying 20 results from an estimated 9000 matches similar to: "replacing values in a vector"

2002 Apr 11
3
graphics in batch mode
Hi! The R-intro guide states that: "The graphics facilities can be used in both interactive and batch modes,.." but I'm trying both R BATCH commands.file and R --no-save < commands.file and, although I get no errors and the output file with the results is written to disk, I get no graphics. (I want the R function to leave results in a file that a shell script reads and use,
2000 Apr 10
2
Newbie: how to calculate group averagege?
Dear R-List, I?m new in R, so I hope my question is not to primitive, but I haven?t found a solution in the R-help. I?ve got a datatframe with 3 factors, called xf (9 levels), yf (9 levels), zf (3 levels) and one variable (rt): > xf yf zf rt > 1 1 1 67 > 1 1 1 56 > 1 1 1 60 [...] > 1 1 2 58 > 1 1 2 61 [...] > 9 1
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
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
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 Nov 22
4
changing the magnification of axis annotation
Hi all, how do I change the magnification of xaxis annotation? I need a smaller axis text size in some of my plots. I tried cex.axix=0.5 in plot(), but this doesn't work. Thanks, Sven -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
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 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 29
4
Why is.integer() doesn't work with single values?
Hi all, I don't understand the behavior of is.integer(): > x <- integer() > is.integer(x) [1] TRUE > x <- 10 > is.integer(x) [1] FALSE > x <- 1:10 > is.integer(x) [1] TRUE Why is.interger() returns FALSE if x has only one element? And how can someone check if x is an integer but contains only one value? (R 1.5.0 on Linux i386) Thanks, Sven
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