similar to: searching a vector

Displaying 20 results from an estimated 6000 matches similar to: "searching a vector"

2003 Dec 02
8
Vector Assignments
Hi, I have simple R question. I have a vector x that contains real numbers. I would like to create another vector col that is the same length of x such that: if x[i] < 250 then col[i] = "red" else if x[i] < 500 then col[i] = "blue" else if x[i] < 750 then col[i] = "green" else col[i] = "black" for all i I am convinced that there is probably a
2003 Nov 18
5
Histogram
Hi, I have what should be a simple question. I would like to generate a histogram of x <- c("a","b","c","b","c","c") where the first bar to be labeled 'c' with height 3, second bar to be labeled 'b' with height 2 and third bar to be labeled 'a' with height 1. This should be an easy task in R but I think I
2003 Nov 17
1
\preformatted and $
Hi, I have been developing a package in R and have been working on documentation. I have a \details function that contains the following: \details{ some text \preformatted{ [my-section] user = apv host = 127.0.0.1 } } When I run R CMD check I get an error while checking the manual. If I remove: \preformatted{ [my-section] user = apv host = 127.0.0.1 } and replace it with [my-section]
2003 Nov 20
1
Compile Packages under Windows and CHM
Hi, I have been developing a small package. It install under RedHat Linux 9.0 without a problem. However, I have a small problem under Windows XP. I am using R-1.8.0 on both systems and HTML Help Workshop 4.74.8702.0 on Windows XP. I created the package under Linux. When I try to install the package created under Linux in Windows XP using c:\rtest> rcmd install rtest I get the following
2004 Mar 01
1
RODBC
Hi, I have installed RODBC on FreeBSD 4.9 and I am using the PostgreSQL ODBC Driver that is distributed with unixODBC 2.2.8. I can access ODBC Data Sources from Open Office so I think that everything is properly installed. When I installed RODBC I had to set export LIBS=-L/usr/local/lib so that R could locate my ODBC manager. I do not have any problems opening database connections and qurey
2003 Nov 12
1
RMySQL
HI, I have been having trouble installing RMySQL under Redhat Linux 9.0. I am using R 1.8.0 and MySQL 4.0.13. MySQL is install in /opt/mysql. I try to install RMySQL using configure-args to specify the path of mysql but it does not work. Does any body have any suggestions. Thanks, Arend van der Veen The command that I am using is: # R CMD INSTALL
2003 Nov 12
0
RMySQL & couldn't find function ".valueClassTest"
Hi Arend, I had the same problem on RH 9 as you, but the tip on http://stat.bell-labs.com/RS-DBI/download/index.html at the bottom telling: """"""""""""""""""""""""""""""""""""""""" The
2008 Oct 15
1
Glusterfs performance with large directories
We at Wiseguys are looking into GlusterFS to run our Internet Archive. The archive stores webpages collected by our spiders. The test setup consists of three data machines, each exporting a volume of about 3.7TB and one nameserver machine. File layout is such that each host has it's own directory, for example the GlusterFS website would be located in:
2009 Dec 31
1
newbie question
Hello, When I install the package Rsafd, I get the following message. > install.packages("Rsafd",repos="http://R-Forge.R-project.org ",dependecies=TRUE) Warning in install.packages("Rsafd", repos = "http://R-Forge.R-project.org", : argument 'lib' is missing: using '/Users/aajd/Library/R/2.10/library' Warning: unable to access index for
2010 Sep 08
2
big data
Hello, I searched the internet but i didn't find the answer for the next problem: I want to do a glm on a csv file consisting of 25 columns and 4 mln rows. Not all the columns are relevant. My problem is to read the data into R. Manipulate the data and then do a glm. I've tried with: dd<-scan("myfile.csv",colClasses=classes) dat<-as.data.frame(dd) My question is: what
2010 Feb 28
6
A slight trap in read.table/read.csv.
I had occasion recently to read in a one-line *.csv file that looked like: "CandidateName","NSN","Ethnicity","dob","gender" "Smith, Mary Jane",111222333,"E","2/25/1989","F" That "F" (for female) in the last field got transformed to FALSE. Apparently read.csv (and hence read.table) are inferring
2007 Jun 12
1
Empty results OMEGA with XAPIAN 1.0.1
Hi, I configured XAPIAN 1.0.1 and OMEGA 1.0.1. on my development machine (first removed the old ones). I recreated my databases (both quartz and flint) and tried to run original queries against the databases created by the new versions. I'm getting empty result sets from OMEGA. If I use the delve tool I actually see that the records are created fine. No log files are written as far as I
2006 Nov 21
3
Cisco media gateways in general
Greetings, After the 0 respones I had on my previous mail regarding the Cisco 2801, I thought I'd be more general. Is anybody using Cisco media gateways at all? If so, how is it working for you? -- Kind regards, Meilleures salutations, Bas van der Veen GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E890160 "The question of whether a computer can think is no
2008 May 14
0
NFS subdirectory on client is out of sync
Today a user asked me whether a file on one host can be different on another host. I was busy composing an answer to tell that the /home space on all clients are mounted using NFS from the file server. Any host will therefor see the same file. The user pointed me to his file and I copied this file from the client and compared this with the file on the file server. To my surprise it turned out
2002 Sep 19
3
Using large-scale repetition in audio compression
This idea is so simple that I'm sure it must have been thought of before, and discarded, since AFAIK it's not used anywhere. I did a quick web search but that didn't turn up much, so I figured I'd put it up for discussion here anyway. How about using large-scale repetition in audio compression? I'm thinking of redundancy in repeated pieces of a song, ie a chorus.
2005 Nov 14
1
roots of a function
For finding the root of the following function I have been using 'uniroot': f(p) = log(p-1) - log(p) + 1/(p-1) - log(A) - B = 0 where 'p' is a scalar. However, I will have to find this root repeatedly, so I would like to suggest a starting value, which is not possible with 'uniroot'. 'nlm' allows the use of starting values, so I have been thinking of applying
2009 Mar 24
1
Disks do not mount at boot
I have a problem with two entries in my /etc/fstab. When I boot the machine, the disks are not mounted. When I give mount -a, all disks are present without an error. Of course I don't want to manually do that after each reboot. What can be the problem? CentOS 5.2 cat /etc/fstab /dev/vg/centos / ext3 defaults 1 1 LABEL=/boot /boot
2003 Jan 11
3
Multithreading
Hi. I need to execute a function from within a GUI. This seems to be no problem but this function takes about 4 minutes to finish, which means the application doesn't react at all, while the function is running. Can I execute a function as a separate Thread, while keeping control(e.g. a reference) of it at the same time? If not, how do this with a class containing this function? thanks,
2004 Feb 18
5
compiling vorbis in cygwin
Hi, On compiling vorbis in a cygwin shell using "./autogen.sh" I get the following error... configure:19396: checking for Ogg configure:19431: gcc -o conftest.exe -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lm -logg >&5 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -logg collect2: ld returned 1 exit status The
2013 Feb 05
0
[PATCH] drm/nouveau: fix lockdep splat in display
Add a flag NVOBJ_FLAG_CREAT_EXCL, which will make sure that only 1 engctx will be created. This removes the need of having multiple Fixes the following lockdep splat: ============================================= [ INFO: possible recursive locking detected ] 3.8.0-rc6-ninja+ #1 Not tainted --------------------------------------------- modprobe/585 is trying to acquire lock: