Displaying 20 results from an estimated 700 matches similar to: "Creating multiple vector/list names-novice"
2008 Nov 08
4
missing value where TRUE/FALSE needed
Hello dear R people,
for my MSc thesis I need to program some functions, and some of them
simply do not work. In the following example, I made sure both vectors
have the same length (10), but R gives me the following error:
Error in if (vector1[i] == vector2[j]) { :
missing value where TRUE/FALSE needed
I googled for possible solutions, but I did not find a good explanation
for this...
2012 Jul 30
4
A "matching problem"
Dear all, I was encountering with a typical Matching problem and was
wondering whether R can help me to solve it directly.
Let say, I have 2 vectors of equal length:
vector1 <- LETTERS[1:6]
vector2 <- letters[1:6]
Now I need to match these 2 vectors with all possible ways like:
(A,B,C,D,E) & (a,b,c,d,e) is 1 match. Another match can be (A,B,C,D,E) &
(b,a,c,d,e), however there
2005 Jun 20
3
vectorisation suggestion
Hi All,
I am counting the number of occurrences of the terms listed in one
vector in another vector.
My code runs:
for( i in 1:length(vector3)){
vector3[i] = sum(1*is.element(vector2, vector1[i]))
}
where
vector1 = vector containing the terms whose occurrences I want to count
vector2 = made up of a number of repetitions of all the elements of
vector1
vector3 = a vector of NAs that is
2005 Sep 09
2
Simulate phi-coefficient
Looking for help with the following problem.
Given a sample of zeros and ones, for example:
> VECTOR1<-rep(c(1,0),c(15,10))
> VECTOR1
[1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
How would I create a new sample (VECTOR2) also containing zeros and
ones, in which the phi-coefficient between the two sample vectors was
drawn from a population with a known
2002 Jan 16
4
faster vector subtraction??
hi
is there a faster way to do this?
i <- 1
for(x in vector1)
for(y in vector2) {
m[[i]] <- (x - y)
i <- i + 1
}
regards soren
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in
2010 Jan 30
2
parsing files for plot
Hi,
I have many files containing one column of data. I like to use the scan
function to parse the data. Next I like to bind to a large vector.
I try this like:
count<-1
files <- list.files() # all files in the working directory
for(i in files) {
tmp <- scan(i)
assign(files[count], tmp)
count<-count+1
}
This part works!
Now I like to plot the data in a boxplot.
2003 Aug 26
3
matching-case sensitivity
Hi All,
I am trying to match two character arrays (email lists) using either
pmatch(), match() or charmatch() functions. However the function is
"missing" some matches due to differences in the cases of some letters
between the two arrays. Is there any way to disable case sensitivity or is
there an entirely better way to match two character arrays that have
identical entries but written
2008 Jun 13
1
x86 SSE* Pointer Favors
Dear Statisticians--- This is not even an R question, so please
forgive me. I have so much ignorance in this matter that I do not
know where to begin. I hope someone can point me to documentation
and/or a sample.
I want to compute a covariance as quickly as non-humanly possible on
an Intel core processor (up to SSE4) under linux. Alas, I have no
idea how to engage CPU vectorization. Do I need
2007 Nov 25
1
Total novice
Hi.
I want to remove one of three hard drives. But if I just remove the
disk, Linux
signals errors and enters administrative mode requesting corrective
actions which,
of course, I do not know. If I reconnect the drive, everything returns
to normality.
Can anyone help me?
Thanks in advance.
MLM
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Mar 20
3
Questions, :-) I'm a novice
I have EA's Need for Speed 2 and Need for Speed 3 Hot Pursuit.
Neither one will run on my WIN XP system. I have a pretty solid 3.0 Ghz system with a 256 MB nvidia graphics card.
I want to run these programs, can I download WINE HQ and play these?
I found this?
http://appdb.winehq.org/objectManager.php?sClass=version&iId=1903&iTestingId=15217
But, I have no clue how to even
2002 Jul 12
0
Novice lme split plot model specification
I am a little confused about a simple model specification in lme().
I have Treatments A (levels=1:2) and B (levels=1:2), Blocks (1:10),
response Y. Levels of treatment A are assigned at random to entire blocks,
and all levels of B are applied to plots within each block.
(I believe that if all levels of A were applied to each block, then the
correct model statement would be:
model <- lme(Y
2008 Sep 22
0
Re lative novice: Working with fitdistr(MASS): 3 questions
OK, I am now at the point where I can use fitdistr to obtain a fit of one of
the standard distributions to mydata.
It is quite remarkable how different the parameters are for different
samples through from the same system. Clearly the system itself is not
stationary.
Anyway, question 1: I require a visual perspective of the fit I get. I can
use hist.scott to get a hisogram (and just have to
2009 May 05
1
novice question regarding R archives
Dear All:
I am new here. Please, advise how can I reach the R-archives to look through the libraries available for download.
Thanks
Xao Ping
R&R Pharmakinetics
Taiwan
[[alternative HTML version deleted]]
2002 Mar 16
0
Novice Questions
Hi,
I have some questions on SysLinux (PXELinux) capabilities:
First I would like to describe our environment.
We are going to have an embedded PC (hopefully running some form of
Linux). By embedded I mean, no user Interface (i.e. no VGA, keybrd,
mouse), no Disk drives of any sort. It will have lots of RAM, part of
which is expected to be used as a RAM disk. It will have a 1Gb Ethernet
2006 Nov 03
1
Looks Like another Novice question here
I have looked through all of the documentation on the simple.c menu setup.
I am moving from the menu with the Default, and several files *.msg my
current menu launches in text and I navigate by F numbers or typing the
corresponding Number next to the option that I want, I can handle setting
this up, but I want a graphical background now and more customized options.
So I am modifying simple.c to
2002 Oct 14
3
Wine novice question
The windose application I am trying to run bombs with the following
error box.
unknown has generated errors and will be closed by Windows.
You will need to restart the program.
An error log is being created.
OK
I can't find the alleged "error log." Any ideas where it may be?
Thanks,
SJr
2002 Oct 15
0
[SJR@ElectricSpectric.com: Re: Wine novice question]
----- Forwarded message from Steven Rubenstein <SJR@ElectricSpectric.com> -----
yes the apps matters because some other users might have run into the
same problem.
Have you check the app database on the codeweavers website ?
I never try that app myself so I forwaded the answer to the mailing list
...
I'll do a little research on it ;)
See you
Rico
> From: Steven Rubenstein
2011 Apr 18
1
5 nice varieties of red wine for novice
Could someone recommend 5 different varieties of red wine, average price available in a supermarket for a novice to get a good overview of what's out there?
:P
2007 Jul 20
1
asterisk novice needs help.
On Fri, 2007-07-20 at 02:08 -0400, BSumrall wrote:
> My dial plan of issues?..
> exten => s,1,Answer(60)
> exten => s,2,Background(otherwise-press)
> exten => s,1,Playback(digits/1)
> exten => s,2,Goto(default,s,1)
> exten => s,1,Playback(digits/2)
> exten => s,2,Goto(default,s,1)
I'm not sure why you have three different sets of priorities one and two
2016 Nov 20
0
Feedback on first, i.e. novice-level, experiences with dovecot
On 20/11/2016 14:51, Michael Felt wrote:
> root at x066:/data/prj/aixtools/dovecot/core# cat /etc/dovecot/README
> Configuration files go to this directory. See example configuration
> files in
> /usr/share/doc/dovecot-core/example-config/
>
> Conclusion:
>
> --prefix=/opt is not applied everywhere.
>
> * More first impressions as I come to them - if you want them -