Displaying 20 results from an estimated 4000 matches similar to: "is there something like or() ?"
2006 Jun 14
4
write data from function into external table
Dear list,
My apologies if a solution / explanation to this already exists on the list,
but it is difficult to assign it to a certain keyword.
test<-c(1:3)
testfct <- function(x) {test[1]<-100}
test
[1] 1 2 3
testfct(1)
[1] 1 2 3
Basically, I would like to write data into an external table that the function
does not know. Why is this not working / what alternatives exist?
Thanks,
2008 Jun 18
4
Editor for Mac OSX
Dear R-list
I am (forced) to change from Linux to Mac and am now looking for a new editor for R. I would like one that features a split window (console + editor) as well as syntax highlighting. Can anyone help? Especially the split-window feature does not seem to be easily available in the editors desribed on the R-help site, except Emacs, which I am reluctant to start using. I am on a MacBook Air
2005 Jul 28
1
stl()
Hello, anyone got an idea on how to use stl() so that the remainder eventually
becomes white noise? i used stl repeatedly but there is autocorrelation in
the remainder that i can't get rid of.
os: linux suse9.3
------------------------------------------------
Sebastian Leuzinger
Institute of Botany, University of Basel
Sch??nbeinstr. 6 CH-4056 Basel
ph 0041 (0) 61 2673511
fax 0041 (0)
2005 Dec 13
2
interruption when pasting code into R under linux
hello,
has anyone come across the following rather mysterious problem:
when pasting large bits of code (100 and more lines) into the R console with
the central mouse button (under linux), only part of the code is pasted, and
the text interrupts somewhere arbitrarily. It does not happen when smaller
bits are pasted subsequently.
I use linux suse 9.3 with the latest version of R
2004 Oct 20
2
common axis label in multiple plot area
Hello
A very short question: Using multiple plots with par(mfrow=c(3,3)), how
can I get R to indicate one common y- and x-axis label? I tried to use
text() in par, but this is then overwritten when I plot the graphs.
--
Sebastian Leuzinger
Institute of Botany, University of Basel
Schönbeinstr. 6 CH-4056 Basel
Ph. 0041 (0) 61 267 3511
fax 0041 (0) 61 2673504
email: Sebastian.Leuzinger@unibas.ch
2005 May 03
3
RMySQL installation: libz missing
Hi
I run suse linux 9.1 and I installed MySQL server, client, devel, bench.
DBI is installed, when I try to install RMySQL I get an error saying,
that libz is missing.
(paths to libs were set:export PKG_CPPFLAGS="-I/usr/include/mysql/"
export PKG_LIBS="-L/usr/lib/mysql/ -lmysqlclient")
so my question: where do I get the libz files (are these mysql files? if
yes, why were
2005 Apr 27
3
libz library missing while installing RMySQL
Hello
Trying to install the MySQL package, I get the following error. The help
archive contains something on this issue but did not help. I work on linux
suse 9.3
Configuration error:
Could not locate the library "libz" required by MySQL.
The library libz however is not on any mirrors I checked.
------------------------------------------------
Sebastian Leuzinger
web
2006 Aug 10
1
installing rimage
dear list
while installing the package rimage, i get the error message
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
configure: error: Sorry, can't find jpeglib header
ERROR: configuration failed for package 'rimage'
although i have installed jpeglib as required. does R not find this library?
but why did it find the fftw library
2005 Dec 01
4
suppress tick labels
hello,
is R able to suppress tick labels (not tick marks)? i know there is a way
around this with axes=F and then draw new axes, but it would be easier to
suppress them in the first place.
--
------------------------------------------------
Sebastian Leuzinger
Institute of Botany, University of Basel
Sch??nbeinstr. 6 CH-4056 Basel
ph 0041 (0) 61 2673511
fax 0041 (0) 61 2673504
email
2005 Oct 18
1
change factor labels
it must be terribly simple, can someone quickly help me?
test <- data.frame(y=c(1:10), x=as.factor(c(rep("a",5),rep("b",5))))
how can i change the factor labels from "a" and "b" to for example "u" and
"v"?
i don't succeed with factor()
thanks a lot
------------------------------------------------
Sebastian Leuzinger
2011 Jan 01
3
Plot symbols: How to plot (and save) a graphic symbols originating from a table
Dear all,
Please, I have a doubt regarding symbol plotting
with data originating from a table.
Please, see below:
I have a tab delimited file called table1.txt with 4 columns:
ypos animal var1 var2
5 cat gina <= lady gina \u2264 lady
7 dog bill >= tony bill \u2265 tony
9 fish dude <= bro dude \u2264 bro
#I then load in the data to R:
table1<-read.table("table1.txt",
2011 Jan 02
1
Please, need help with a plot
Please, I wonder if someone knows how to add the
less than or equal to symbol in the plot generated by the code below:
var1<-c('age <= 3','age <= 7','age <= 10','age <= 11','age <= 20','age <=
25','age <= 30','age <= 45','age <= 50','age < 55','age >= 55')
2005 Dec 16
2
dendrogram branches with different lty
Dear r-list,
I am trying to visually seperate the two main clusters of a dendrogram.
The idea is to use:
'edgePar=list(lty=3)' for 'dend1[[1]]' and
'edgePar=list(lty=1)' for 'dend1[[2]]'
I have not found a way to solve this. Any suggestions?
Patrick
hc <- hclust(dist(USArrests), "ave")
(dend1 <- as.dendrogram(hc))
par(mfrow=c(2,2))
plot(dend1)
2010 Jun 18
3
inverse function of melt
Dear list,
I'm looking for an inverse function of melt(which is in package reshape).Namely, I had a data frame like this
(Table1)
YEAR VAR1 VAR2 VAR3
1995 7 3 45
1996 5 6 32
1997 6 10 15
I transformed my data by using the melt function and my data was reshaped in the following format:
(Table2)
YEAR variable
2005 Aug 15
1
error in predict glm (new levels cause problems)
Dear R-helpers,
I try to perform glm's with negative binomial distributed data.
So I use the MASS library and the commands:
model_1 = glm.nb(response ~ y1 + y2 + ...+ yi, data = data.frame)
and
predict(model_1, newdata = data.frame)
So far, I think everything should be ok.
But when I want to perform a glm with a subset of the data,
I run into an error message as soon as I want to predict
2005 Jan 06
1
pdbedit syntax for forcing user to change password
Hi all
Maybe a stupid question, but I'm not able to figure this out from the
manpage nor from the HOWTOs...
How can I force a user to change his password at next logon?
I tried:
# pdbedit -P "user must logon to change password" -C 0 -u username
# pdbedit -u username -P "user must logon to change password" -C 0
# pdbedit -P "user must logon to change password"
2005 Mar 23
4
Samba-LDAP TLS problems with inofficial Debian OpenLDAP 2.2 packages
Dear Torsten, dear samba list reader
Three days ago I switched our domain from a NT 4 domaincontroller to
Samba-OpenLDAP, controlled by a Debian Sarge system. I installed the
following inofficial Debian OpenLDAP 2.2 packages (I know these are not
supported, but TLS with OpenSSL is essential to us...):
Package: slapd
Version: 2.2.20-1.hrz.1
Package: libldap2.2
Version: 2.2.20-1.hrz.1
2003 Jan 21
2
newbie: data frame to vector
Sorry, but I'm very new to R. I'm trying to figure out how to convert a
column from a data frame to a vector. More specifically, I have read in a
comma separated value table which contains a number of variables in columns,
plots in rows...
t <- read.table("G:/R/table1.txt", sep=",", header=TRUE)
the data comes in just fine. Now I want to do an XY plot of 2
2007 Apr 02
1
RODBC, sqlQuery with NA:s
Hi R-users,
I'm trying to retrieve data from MS SQL database with RODBC's
sqlQuery-function:
temp <- sqlQuery(channel,"select *, (select text from table1 where
koodi='paa' and koodi2=paa) as tempor from table2")
str(temp)
…
$ var0 : num NA NA 1.6 NA NA 1.4 NA 1 NA NA ...
$ var1 : Factor w/ 45 levels "
2011 Jan 23
3
FUNC_ODBC and ARRAY
Gentlemen,
I have googled, searched the mailing list archives, and even spoke on
the IRC channel, but have not found an answer to the following
problem. I am attempting to retrieve multiple columns in an ODBC query
using ARRAY per the solutions offered by many individuals. My dialplan
code is as follows:
exten => _.,n,Set(ARRAY(var1,var2,var3)=${ODBC_LOOKUP(${KEYVAL})})
exten =>