similar to: help converting for loop to vector operation

Displaying 20 results from an estimated 300 matches similar to: "help converting for loop to vector operation"

2008 Sep 11
2
database table merging tips with R
I have not devoted time to setting up ROracle since binaries are not available and it seems to require some effort to compile (see http://cran.r-project.org/web/packages/ROracle/index.html). On the other hand, RODBC worked more or less magically once I set up the data sources. What is your success using ROracle and why would it be preferable to RODBC ? -Avram On Thursday, September 11,
2005 Oct 20
4
creating a derived variable in a data frame
Hello, I have read through the manuals and can't seem to find an answer. I have a categorical, character variable that has hundreds of values. I want to group the existing values of this variable into a new, derived (categorical) variable by applying conditions to the values in the data. For example, suppose I have a data frame with variables: date, country, x, y, and z. x,y,z are
2008 Aug 21
2
Large data sets with R (binding to hadoop available?)
Dear R community, I find R fantastic and use R whenever I can for my data analytic needs. Certain data sets, however, are so large that other tools seem to be needed to pre-process data such that it can be brought into R for further analysis. Questions I have for the many expert contributors on this list are: 1. How do others handle situations of large data sets (gigabytes, terabytes)
2008 Dec 03
3
Help with maps
A few questions about maps... (1) How can I find a listing of the internal data sets that map() from the maps library contains? For example, "usa", "county", "state", "nz" all work. Are there any others? (2) Is there an easier, more generalized way to produce this (http://www.ai.rug.nl/~hedderik/R/US2004/ ) type of plot than this
2009 Feb 26
1
bottom legends in ggplot2 ?
Has anyone had success with producing legends to a qplot graph such that the legend is placed on the bottom, under the abcissa rather than to the right hand side ? The following doesn't move the legend: library(ggplot2) qplot(mpg, wt, data=mtcars, colour=cyl, gpar(legend.position="bottom") ) I am using ggplot2_0.8.2. Thanks in advance, Avram
2009 Jul 31
1
Using R with Hadoop/Hive for Big Data
Hive <http://hadoop.apache.org/hive/> is a data warehouse infrastructure built on top of Hadoop that provides tools to enable easy data summarization, adhoc querying and analysis of large datasets data stored in Hadoop files. It provides a mechanism to put structure on this data and it also provides a simple query language called QL which is based on SQL and which enables users familiar with
2009 Mar 03
4
scatter plot question
Hi R Users, I have a dataframe like this: id x rho A 1 0.1 B 20 0.5 C 2 0.9 ... I want to do a scatter plot of "x" versus "rho" but for each point on the scatter plot I want the corresponding entry for "id" instead of points. In STATA I can do so by twoway (scatter x rho, mlabel(id)) How can I do the same in R? I am sure there is some simple way to do
2007 Sep 01
2
[patch] sftp-server basepath [yet another]
Hi, I made this simple path to make sftp-server restricted to a basepath! This was done because use sshfs [wich base is sftp-server] to allow people access medias [ cdrom,dvdrom, floppy, usb] from x-terms. Those x-terms [ diskless] does not have all users, so we share a single user and a DSA empty passphrase, with some acl scipts at .ssh/authorized keys. Main usage of this patch is to NOT
2018 Oct 03
2
Bug reports - auth is broken in Dovecot 2.3.3
On 3 Oct 2018, at 14.09, Berindeie Avram-Teodor <berindeie.teo at gmail.com> wrote: > > > > I do not have downloaded the source from GitHub. The patch modifies configure.ac, so unless you run autogen.sh the configure script isn't modified and that patch doesn't work. Or as an alternative you could simply manually append to config.h: #define HAVE_CRYPT_H > >
2005 Aug 15
1
Anything like dir.choose (similar to file.choose) in R?
Does R have a dir.choose function? I can use file.choose like this as a kludge to get something like a dir.choose, but a real dir.choose would be better: cat("Select one of files in directory to process:\n") filename <- gsub("\\\\", "/", file.choose()) basepath <- dirname(filename) Windows provides a lower-level SHBrowseForFolder function to create such
2018 Oct 03
5
Bug reports - auth is broken in Dovecot 2.3.3
I applied the patch and recompiled but nothing resolved. What else can I do? -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20181003/17af6a17/attachment.html>
2018 Oct 04
2
Bug reports - auth is broken in Dovecot 2.3.3
On Wed, Oct 03, 2018 at 03:47:11PM +0300, Berindeie Avram-Teodor <berindeie.teo at gmail.com> wrote: > On Wed, Oct 3, 2018 at 2:44 PM Timo Sirainen <tss at iki.fi> wrote: > > On 3 Oct 2018, at 14.09, Berindeie Avram-Teodor <berindeie.teo at gmail.com> > > wrote: > >> On Wed, Oct 3, 2018 at 1:53 PM Timo Sirainen <tss at iki.fi> wrote: >
2015 Nov 11
2
[PATCH 1/2] dib: Make the interface between cmdline.ml and dib.ml explicit.
--- dib/Makefile.am | 5 ++- dib/cmdline.ml | 49 +++++++++++++++++++++--- dib/cmdline.mli | 51 +++++++++++++++++++++++++ dib/dib.ml | 113 ++++++++++++++++++++++++++++++-------------------------- 4 files changed, 158 insertions(+), 60 deletions(-) create mode 100644 dib/cmdline.mli diff --git a/dib/Makefile.am b/dib/Makefile.am index 0786d64..ad1fd6a 100644 --- a/dib/Makefile.am +++
2007 Jan 19
2
Newbee-Question General Syntax
Hi there! I´ve started looking into puppet for about one week now, I have to say that I am NOT a developer, i occasionally write a shellscript or another but thats about it, so maybe my problem is that i dont see the whole picture yet.. I kind of know what i want to do, but at the moment i don´t realy see how i can accomplish that.. :/ thing is, I have (for now "just") about 100
2011 Aug 03
2
[PATCH v3 0/2] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. This functionality is implemented in a newly introduced run_parts() call, which calls scandir() to iterate through files which in then executes in sequence. run_parts() is also available as a
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. It is implemented by first implementing scandir() and alphasort() as present in POSIX.1-2008 in klibc itself, and then using that as the basis for iterating and executing files via a run_scripts()
2003 Jul 02
6
help: booting dos from syslinux/memdisk
Thanks for Remko for his help to solve the fractional cylinder problem. But there is the second problem, the boot disk failure (see below << [B]) ... command line: initrd=disk.img harddisk c=2 h=256 s=63 BOOT_IMAGE=memdisk Disk is hard disk, 16128K CHS=2/256/63 <<<< [A] ... Loading boot sector... booting... SYSLINUX 2.04 welcome! boot: 1 [single dot]
2006 Jan 08
8
RaislsEdge - where to get latest javascripts ?
To play with RJS I just made a "rake freeze edge". But this copies only the libs into vendor/rails and any attempt of "rake update_javascripts" fails. But all the he required javascripts are there, at: BASEPATH/vendor/rails/actionpack/lib/action_view/helpers/javascripts/ Except of prototype, they seem to have no version number, so I am asking whether I should take those
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
Add support for scandir() and alphasort() as defined in POSIX.1-2008. Signed-off-by: Mike Waychison <mikew at google.com> --- usr/include/dirent.h | 7 +++++ usr/klibc/Kbuild | 2 + usr/klibc/scandir.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 1 deletions(-) create mode 100644 usr/klibc/scandir.c diff --git
2017 Mar 22
0
[PATCH 4/5] dib: require a Python interpreter
d-i-b 2.0 is written in Python, and thus it passes the information about the interpreter used for it (sys.executable) to the scripts that need it; this mechanism replaces the old discovery of what is the default Python interpreter in the system. Since we are not Python-based, look for 'python' and use it as default interpreter, with the --python command line option to set a different one.