similar to: Using 'cat' on data frame

Displaying 20 results from an estimated 600 matches similar to: "Using 'cat' on data frame"

2008 Dec 16
8
sliding window over a large vector
Hi all, I have a very large binary vector, I wish to calculate the number of 1's over sliding windows. this is my very slow function slide<-function(seq,window){ n<-length(seq)-window tot<-c() tot[1]<-sum(seq[1:window]) for (i in 2:n) { tot[i]<- tot[i-1]-seq[i-1]+seq[i] } return(tot) } this works well for for reasonably sized vectors. Does
2008 Dec 24
1
selecting a subset of a matrix based on a value occurring in 5 records
Hello, >I am hoping for some advice as to how I might create a subset of a >matrix. The matrix is 176 x 3530. The rows are individual records >and the columns words. I want to create a new matrix that only >consists of words which occur in at least 5 records. For example, >if column 7 is "charges" and this only appears in 4 records/rows >this variable would not
2007 Dec 20
2
factor manipulation: edgelist to a matrix?
Hello All, I have had considerable bad luck with attempting the following with for loops. Here is the problem: # Suppose we have a data.frame with the following data, which can be considered a type of edgelist (for those with networks backgrounds): # # V1 V2 # 1 A # 1 A # 1 B # 2 A # 3 C # 3 A # 3 C # 3 B # # I want the output of the function to produce a matrix, such that #each factor of
2005 Apr 22
1
density estimation
hello sorry for my english I would like estimate density for multivariate variable,( f(x,y) , f(x,y ,z) for example) ; for calculate mutual information how is posible with R? thanks Bernard Bernard Palagos Unité Mixte de Recherche Cemagref - Agro.M - CIRAD Information et Technologie pour les Agro-Procédés Cemagref - BP 5095 34033 MONTPELLIER Cedex 1 France
2010 Oct 04
1
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
>>> Any help will be much appreciated. Thanks! >> Windows does not support dynamic linking. You will need to resolve >> externals by hand. > > Why would it not support dynamic linking?  What about loadlibrary and > its kin are not sufficient to handle this? Well, you cannot easily export stuff from an executable and this is the main issue here. (And you cannot e.g.
2008 Apr 17
1
Moving from Splus to R: irregular and regular time series
Dear R developpers, I am a user of Splus since many years and I have developped lots of functions to plot graph of data and model results of irregular or regular times series. In Splus regular times series are created using the rts function and irregular time series using the its functions. In both cases, times is given as a numeric vector. There is no problem in plotting a regular and an
2007 Feb 27
1
interactions and GAM
Dear R-users, I have 1 remark and 1 question on the inclusion of interactions in the gam function from the gam package. I need to fit quantitative predictors in interactions with factors. You can see an example of what I need in fig 9.13 p265 from Hastie and Tibshirani book (1990). It's clearly stated that in ?gam "Interactions with nonparametric smooth terms are not fully
2010 Oct 02
4
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
Hi Buit the Kaleidoscope example under MinGW and everything runs fine except when I try the following example in Chapter 6: extern printd(x); printd(123); where printd is the library function defined in C as extern "C" double printd(double X) { printf("%f\n", X); return 0; } The error message is: LLVM ERROR: Program used external function
2010 Oct 04
0
[LLVMdev] LLVM ERROR: Program used external function 'printd' which could not be resolved!
On Mon, Oct 4, 2010 at 3:22 AM, Anton Korobeynikov <anton at korobeynikov.info> wrote: >>>> Any help will be much appreciated. Thanks! >>> Windows does not support dynamic linking. You will need to resolve >>> externals by hand. >> >> Why would it not support dynamic linking?  What about loadlibrary and >> its kin are not sufficient to handle
2003 Sep 12
2
partial mantel
Dear all, Has anyone written R code for partial Mantel Tests- as described for instance in Legtendre & Legendre (1998) ? In other words, in a community ecology analysis, I would like to calculate the correlation between two dissimilarity matrices, controlling for a third distance matrix representing geographical distances between sites. Thanks! Christophe Bouget Biodiversité et gestion des
2009 Jan 08
2
Faster Printing Alternatives to 'cat'
Dear all, I found that printing with 'cat' is very slow. For example in my machine this snippet __BEGIN__ # I need to resolve to use this type of loop. # because using write(), I need to create a matrix which # consumes so much memory. Note that "foo, bar, qux" object # is already very large (>2Gb) for ( s in 1:length(x) ) {
2002 Jul 17
1
rpcclient enumdrivers enumprinters
Hi all, i'm new to the list and here's my first question : I'm trying to install several printer drivers on my samba server with imprints. I did a package with the NT/2000 and W9x drivers and the mkprintpkg command. Then I used the command install_printer_drivers.pl to install the files in the appropriate directories. So now i'd like to check the drivers available and the
2000 Jul 04
0
AW: FreeBSD 3.5-STABLE
At 08:15 04/07/00 +0200, Bladt Norbert wrote: >> Darren Evans [SMTP:darren at horseplay.demon.co.uk] wrote: >> >> gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" >-DSSH_PROGRAM=\"/usr/local/bin/ssh\" - >> DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\" >-DHAVE_CONFIG_H -c loginrec.c >> loginrec.c:
2007 Apr 11
3
Problems sharing HP Officejet 6210 Linux --> XP
[cross-posted from www.tek-tips.com] Dear samba forum, I've now wasted most of a weekend on this issue, so now it's time to swallow my pride and ask for help! Background: My main home computer died. I can't afford to replace it right now, so I'm attempting to retread an old AMD PC into a linux print/file server. Clients are a mixed bag of Windows XP home/professional PCs. The
2003 Feb 04
3
basic question
Dear R users, Up to now, I only used precompiled packages. As I am working on vegetation ecology, I would be interested in using a package not stored by CRAN called labdsv_0.9-1.tar.gz and developped by Dave Roberts at the National Center for Ecological Analysis and Synthesis (unfortunately I did not find any corresponding .zip file). Although I tried to follow the proposed guidelines to
2009 Jun 19
0
[LLVMdev] How to call C++ code from LLVM
On Thu, Jun 18, 2009 at 3:57 PM, Jules Jacobs<julesjacobs at gmail.com> wrote: > How can I call C++ libraries (LLVM & Qt for example) from a language that's > implemented on top of LLVM? You can call them the same way a C++ file compiled with llvm-g++ would call them. Essentially, it's complicated enough that you probably don't want to do it for any interface of
2009 Jun 18
3
[LLVMdev] How to call C++ code from LLVM
Hi, How can I call C++ libraries (LLVM & Qt for example) from a language that's implemented on top of LLVM? Thanks, Jules -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090619/4621508b/attachment.html>
2000 Jul 15
0
seg.fault in eval.c (PR#608)
--/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Hello everyone, verison: 1.0.1 platform: Gnu/linux mandrake 7.1beta I'm running a user function to step through a frame and plot one column against the next. This crashes the program fairly reliably although not on the first try. Here is a log of the session run through gdb. First I launch R, print out the top of the frame and
2007 May 11
1
changing the mode of a factor (PR#9675)
Full_Name: Fr?d?ric Gosselin Version: 2.5 vs 2.4 and 2.2.1 OS: windows XP Submission from: (NULL) (195.221.118.52) ############# L3 <- LETTERS[1:3] (d <- data.frame(cbind(x=1, y=1:10), fac=as.factor(sample(L3, 10, repl=TRUE)))) mode(d[,3])<-"numeric" ############### when trying to change the mode of a column in a data.frame that is a factor to numeric(cf. preceding code),
2001 Dec 28
3
Compiling samba with solaris
Hi, I just cvs the samba_2_2 branch with cvs -d :pserver:cvs@samba.org:/cvsroot co -r SAMBA_2_2 samba and i try to compile samba with gcc under solaris 8 (SUNultra10): # pwd /tmp/samba/source # ./configure --with-automount --with-nisplus-home loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc -O ) works... no configure: error: installation or configuration