Displaying 20 results from an estimated 500 matches similar to: "Point pattern to grid"
2005 Nov 18
1
How to plot two dataset in one fig?
Hi all,
I am new in R tool. I would like to plot two dataset in in fig.
Here is what I did for both a and b data sets
jpeg(file="a.jpeg")
dat<-read.table('a', header=F, sep=',')
dim(dat)
y<-dat[,1]
y<-y[!is.na(y)]
plot(y);lines(lowess(y, f=0.05), col =
("red"), lwd=5)
dev.off
Two questions:
1. How I can save this lowess smooth data?
2. Once I
2012 Sep 04
1
Changed PDC IP, all hell broke lose
I had to move my RedHat 5 box acting as a PDC to a new IP address. It is
running samba 3.5.10. After the move, none of my windows or linux samba
clients worked anymore. I tried rejoining some to the domain, but would
get error
Unable to find a suitable server
Join to domain 'MRIRESEARCH' is not valid
The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore
(for 4
2020 Oct 12
3
Encrypting boot partition Libvirt not showing the OS booting up
Hi,
I have installed Debian Buster with encrypted LVM so apon installation
my root partition is encrypted.
So far so good but as soon as I encrypt the boot partition, after reboot
the OS won't start.
If I start the drive directly with qemu, it works but it looks like
Libvirt is somehow not able to deel with it.
What am I missing?
--
John Doe
2004 Feb 12
3
fs block level syncing
Right now we do a lot of hard to hard disk backup by using rsync to weekly
"mirror" the source filesystem to a backup filesystem. This works fairly
well for most sources. However, one issue with rsync is that simple things
like changing the file name or directory name cause the whole file or
directory structure to get recopied over a previous sync. Also, like for
mail spools, large
2011 Jun 25
1
if you start fifa error message comes
I've installed new fifa and written in the code of the terminal had opened up to play EA Sports intro then comb a new error message in there Standt:
"In the program were difficult manager11.exe gent fault and it must be-beeendet We apologize for this unnanehmlichkeiten.
The cause may be a problem in the program or may fail to run in wine sein.sie www.appdb.winehq.org tips under the
2004 Jul 02
2
file size and actually blocks do not match
I have a disk where serveral files have a file size that is much bigger
then the space they actually use. THe file size is bogus. In the example
below, the size is reported as 4.2MB but the file is really supposed to be
on 116K which is true accoring to du and the block list from debugfs.
However, doing a 'cat |wc' file actually gives me 4.2MB bytes. Where are
those extra bytes coming
2007 Apr 24
1
specify xlim for each panel
I draw dotplot using the following code:
sd.dotplot<-dotplot(data.47.nmr$om_sd ~ as.factor(data.47.nmr$position)
|as.factor(data.47.nmr$pr), data = data.47.nmr,layout=c(1,1),
xlab="Position", xlim=range(data.47.nmr$position),ylab="Sd", main="Changes
of omega angle in different positions",
scales = list(x = list(rot = 45)))
However I get same xlim for each
2024 Aug 09
3
If loop
"Or use <<- assignment I think. (I usually return, but return can only
return one object and I think you want two or more"
You can return any number of objects by putting them in a list and
returning the list.
Use of "<<-" is rarely a good idea in R.
-- Bert
On Fri, Aug 9, 2024 at 1:53?AM CALUM POLWART <polc1410 at gmail.com> wrote:
>
> OK. The fact
2011 Mar 10
2
sum of variables in function
Dear R users,
Probably, this is quite a simpe question, but I do not find the proper way
to obtain want I need. To explain the problem, I constructed a simple
example.
Suppose I have the following function:
try1<-function(x){
y<-x[1:2]
z<-x[3:4]
y[1]*(z[1]+z[2])+y[2]*(z[1]+z[2])
}
This function will be part of a for loop. This is what I like to obtain for
every k:
if k=2
2005 Feb 10
5
Annual cumulative sums from time series
Hello world,
I am actually transferring a course in data management for
students in biology, geography and agriculture
from statistica to R - it works
surprisingly well. If anyone is interested in my scratch/notepad
(in German language), please see
www.hydrology.uni-kiel.de/~schorsch/statistik/statistik_datenauswertung.pdf
(pages 40-52)
The dataset is:
2007 Jun 21
1
Using the object of character data type as the name of the slot
Dear all,
I have a character string object:
> chara
[1] "The name of first slot"
and a list object:
> class( try1)
[1] "list"
what I want to do is to use the chara as a slot's name of "try1".
Of course I could do it like:
> try1$"The name of first slot" <- matrix("", 3, 4)
to create a slot of 3x4 matrix with the name
2024 Aug 09
1
If loop
Thanks. Hmm. The loop is doing what it is supposed to do.
> try1<-function(joint12=FALSE,marg1=FALSE,marg2=FALSE,
+??????????????? cond12=FALSE,cond21=FALSE){
+ # ***************************************************
+ # Testing if loop
+ # ***************************************************
+ if(joint12){
+?? {print ("joint12"); cat(joint12,"\n")}
+?? {print
2024 Aug 09
2
If loop
OK. The fact it's in a function is making things clearer.
Are you trying to update the values of an object from within the function,
and have them available outside the function. I don't speak functional
programming articulately enough but basically
v <- 1
funA <- function() {
v <- v+1
}
funA()
cat (v)
# 1
You either return the v from the function so
funB <- function() {
2024 Aug 09
1
If loop
Is something wrong in the initialisation part that we don't see?
joint12 <- marg1 <-F
marg1 <-T
if (joint12) {
print ("joint 12")
cat (joint12)
}
if (marg1) {
print("marg 1")
cat(marg1)
}
Would probably be my diagnostic approach
On Fri, 9 Aug 2024, 04:45 Steven Yen, <styen at ntu.edu.tw> wrote:
> Can someone help me with the if loop below?
2012 Dec 19
1
confirming a formula for use with lmer
Hello,
I recently began using R and the lme4 package to carry out linear mixed
effects analyses.
I am interested in the effects of variables 'prime','time', and 'mood'
on 'reaction_time' while taking into account the random effect
'subjects.' I've read through documentation on lme4 and came up with the
following formula for use with lmer:
2016 Jan 06
4
Cannot remove symlink with missing target
Hi,
I have started using symbolic links on an SMB share and find that
symbolic links whose target no longer exists cannot be removed on the
client side.
Example, on the SMB client side in an SMB-mounted directory:
1. Create a file and a relative symlink to it:
$ touch a
$ ln -s a b
$ ls -l
total 0
-rw-rw-r--. 1 andi andi 0 Jan 6 14:42 a
lrwxrwxrwx. 1 andi andi 1
2010 Nov 28
6
[LLVMdev] RFC: Exception Handling Proposal II
On Nov 28, 2010, at 1:57 PM, Bill Wendling wrote:
> On Nov 28, 2010, at 2:59 AM, John McCall wrote:
>
>> On Nov 28, 2010, at 2:20 AM, Bill Wendling wrote:
>>
>>> On Nov 27, 2010, at 4:57 PM, John McCall wrote:
>>>
>>>> On Nov 25, 2010, at 3:03 AM, Duncan Sands wrote:
>>>>> I'm pointing out that if the invoke instruction
2007 Feb 01
3
Lining up x-y datasets based on values of x
Hi,
I was wondering if there is a direct approach for lining up 2-column
matrices according to the values of the first column. An example and a
brute-force approach is given below:
x <- cbind(1:10, runif(10))
y <- cbind(5:14, runif(10))
z <- cbind((-4):5, runif(10))
xx <- seq( min(c(x[,1],y[,1],z[,1])), max(c(x[,1],y[,1],z[,1])), 1)
w <- cbind(xx, matrix(rep(0, 3*length(xx)),
2019 Jan 08
2
Users created in last few years cannot login after 4.7 -> 4.8 + winbind
It appears there is still misunderstanding about my situation/setup. Sorry, I
know this is strange.
I have an LDAP server for my Linux infrastructure that is totally seperate
from the corporate AD Windows domain. At one point my LDAP did have
the samba schema installed with my its own SID's and smbpasswd's in it.
My web app for users to change their Linux password would on the backend
2004 Oct 14
2
fidelity of generated raster images (R and perl)
Hi:
Goal: use R to turn a matrix of 1's and 0's
into a corresponding image (e.g. png)
of black and white pixels.
Why R: Yes, I can do this more efficiently and precisely
with a perl module like Image::PBM. Been there,
done that many times, etc. (Just humor me.
I'm trying to do this with R for a number of reasons.)
Problem: