Displaying 20 results from an estimated 5000 matches similar to: "Checking existance of a directory"
2005 Dec 15
2
Why is bubbles() creating empty png graphs?
This code below produces empty XXX.png files - if I use plot(), it works
and if I enter the commands
png(filename=fn)
bubble(positions, do.sqrt=FALSE, main=q)
dev.off()
manually, it works as well.
I am lost - any help appreciated.
The weird thing is that it worked before I made some changes... (I don't
have a copy of the working version...).
R version:
platform i686-pc-linux-gnu
arch
2007 Apr 18
5
Problem with ?curve
Dear all R gurus,
I have following syntax:
y = c(1:10)
chippy <- function(x)
{
y[5] = x
sin(cos(t(y)%*%y)*exp(-t(y)%*%y/2))
}
curve(chippy, 1, 20, n=200)
But I am getting error while executing :
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ
In addition: Warning message:
number of items to
2008 Sep 11
4
All possible pairs of two variables
I have two variables (x,y) :
x : it takes all integer values from 0 to y and,
y : takes all values from 0, 10
I am looking for some R code to find all possible pairs of (x,y). Can anyone please help me?
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
[[alternative HTML version
2012 Dec 26
3
Working with date
Hi,
Let say I have a date variable:
> ?asd <- as.Date("2012-01-03")
> asd
[1] "2012-01-03"
Now, I want to express this date like 3/1/2012.
can somebody help me how to achieve that?
Thanks,
2010 Sep 15
3
Keyword to clear the screen
Hi all, can anyone please tell me what is the key-word to clear the screen? I am aware of the "cont+L", however I need some R-syntax, that can be typed into the console to clear the screen.
Thanks
[[alternative HTML version deleted]]
2008 Jan 16
4
Different results in calculating SD of 2 numbers
Hi all,
Can anyone tell me why I am getting different results in calculating SD of 2 numbers ?
> (1.25-0.95)/2
[1] 0.15
> sd(c(1.25, 0.95))
[1] 0.2121320 # why it is different from 0.15?
Regards,
Send instant messages to your online friends http://uk.messenger.yahoo.com
[[alternative HTML version deleted]]
2013 Oct 02
1
Dovecot namespace solved while writing; preparing to refilter
Hi!
My plea to readers:
===================
Pls., people who only want strictly technical issues to read, and frown
at any
broader context regardless how intrinsically related, but not strictly
technically related, it might be, skip all the way, all the way to,
search for
exact words: "strictly technical" or visually, find two lines of sole
"==="
characters. Thank you!
2011 Jan 08
3
Question on list objects
Hi, I have 2 questions on list object:
1. Suppose I have a matrix like:
dat <- matrix(1:9,3)
Now I want to replicate this entire matrix 3 times and put entire result in a list object. Means, if "res" is the resulting list then I should have:
res[[1]]=dat, res[[2]]=dat, res[[3]]=dat
How can I do that in the easilest manner?
2. Suppose I have 2 list objects:
list1 <- list2
2011 Jun 06
2
A Calculation on list object
Hello, I am into some calculation on a list object, therefore requesting the peers if there is any short cut way to so the same calculation.
Let say I have following list object:
> List <- vector('list', length = 3)
> set.seed(1)
> List[[1]] <- rnorm(5)
> List[[2]] <- rnorm(2)
> List[[3]] <- rnorm(7)
> List
[[1]]
[1] -0.6264538 0.1836433 -0.8356286
2010 Oct 14
1
Fw: Problem to create a matrix polynomial
Awaiting some suggestion. Was my question not very understandable? Please let me know how can I offer more elaborate clarification.
Additionally, I would like to solve the determinant of "p1" for the values of "z" (I am working with some multivariate time series modelling). When I use det() function, it am getting error that, that function is not for objects with class
2007 Oct 01
4
Concatenating one character vector into one string
Hi
I am sure this is simple - but how can I convert one charecter vector
into one string?
example:
x <- c("This ", "is ", "one ", "sentence.")
should become
"This is one entence"
Thanks
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE DISCONTINUED END OF MARCH
Rainer M. Krug, Dipl. Phys.
2005 Nov 16
1
update R packages in local repos
I try to update R packages via my local repository.
I put all R packages in g:/myFolder/myRepository, I do like
> library(tools)
> write_PACKAGES("g:/myFolder/myRepository")
> options(repos=c(LocalR="file://g:/myFolder/myRepository"))
> getOption("repos")
LocalR
"file://g:/myFolder/myRepository"
>
2006 Feb 15
6
error_messages_for trouble
I am trying so learn how to do custom validations.
The validation works as expected, but I can''t get "error_messages_for"
to display.
How is the name of the object supposed to be formated?
Where is this object created, the model or controller?
What am I doing wrong here?
#### Model ########################
class MyFolder < ActiveRecord::Base
def validate
# validation
2007 Sep 20
2
referencing packages?
Hi
I know how to referenc R in a scientific paper - but is there a
standardised way to reference packages?
Thanks
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE DISCONTINUED END OF MARCH
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
2006 Sep 06
4
problem with putting objects in list
Hi
I use the following code and it stores the results of density() in the
list dr:
dens <- function(run) { density( positions$X[positions$run==run], bw=3,
cut=-2 ) }
dr <- lapply(1:5, dens)
but the results are stored in dr[[i]] and not dr[i], i.e. plot(dr[[1]])
works, but plot([1]) doesn't.
Is there any way that I can store them in dr[i]?
Thanks a lot,
Rainer
--
Rainer M. Krug,
2010 Dec 22
3
A question to get all possible combinations
Let say, I have a matrix with 8 rows and 6 columns:
> df1 <- matrix(NA, 8, 4)
> df1
[,1] [,2] [,3] [,4]
[1,] NA NA NA NA
[2,] NA NA NA NA
[3,] NA NA NA NA
[4,] NA NA NA NA
[5,] NA NA NA NA
[6,] NA NA NA NA
[7,] NA NA NA NA
[8,] NA NA NA NA
Now I want to get **all possible** ways to fetch 6 cells at a
2009 Jan 31
2
Strange behaviour with rsync and mounted truecrypt volume
Hello,
when i mount a truecrpyt volume with truecrypt 5.1a and
synchronize data locally with rsync (version 2.6.9 protocol version 29) like this way:
$ truecrypt myvolume.tc
$ rsync -av /home/oliver/myfolder /media/truecrypt
The myfolder is copied to /media/truecrypt like it should.
But when i dismount the truecrypt volume
and mount it again:
$ truecrypt -d /media/truecrypt
$ truecrypt
2012 Sep 05
2
samba4 installation Error and mount: unknown filesystem type 'smbfs'
Hi, all:
Two questions.
Environment: Ubuntu 12.04
1) mount: unknown filesystem type 'smbfs'
With default Samba 2:3.6.3-2ubuntu2.3 installed, all the following 3
commands failed:
a)
$ sudo mount -t *smbfs* -o username=MYNAME,password=MYPWD
//mybooklive/myfolder /media/smb/
mount: unknown filesystem type 'smbfs'
b)
/media$ sudo mount -t *cifs* -o
username=MYNAME,password=MYPWD
2017 Mar 07
2
moh reload not reloading/reading new musiconhold files
Hello
I did not mention it but of course the MOH directory is listed in
/etc/asterisk/musiconhold.conf :
[default]
mode=files
directory=/var/lib/asterisk/moh
[myfolder_1]
mode=files
directory=/var/lib/asterisk/moh/myfolder/1
sort=alpha
[myfolder_2]
mode=files
directory=/var/lib/asterisk/moh/myfolder/2
sort=alpha
[myfolder_3]
mode=files
directory=/var/lib/asterisk/moh/myfolder/3
sort=alpha
2007 Aug 16
6
several plots on several pages
Hi
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 2
minor 5.1
year 2007
month 06
day 27
svn rev 42083
language R
version.string R version 2.5.1 (2007-06-27)
I want to create a pdf withe three graphs on a page and with two pages: