similar to: apply question

Displaying 20 results from an estimated 10000 matches similar to: "apply question"

2012 Jul 18
3
Upgrading on Ubuntu from 2.11.1 to 2.15.1
This doesn't work, what should I do? sudo apt-get install r-base [sudo] password for cseligman: Reading package lists... Done Building dependency tree Reading state information... Done r-base is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Also: > .libPaths() [1] "/export/home/cseligman/local/library/R" [2]
2012 Dec 09
1
Making fifo work (Linux)
Friends I need to get R reading from a fifo. I want it to block till there is some data in the fifo, consume what input it gets there, do some thing with it then loop back and block again. Very simple. Yes? No. The example in the documentation works OK.. zz <- fifo("foo-fifo", "w+") writeLines("abc", zz) print(readLines(zz))
2013 Aug 22
1
Rexcel
Hello, I must tell you once again to address your questions to r-help at r-project.org And since there was no subject line, I've made up one. Your question seems to be a question about excel, and I really can't help you. Maybe someone else can. But if you write.table(etszP) can't you read that file into excel? Rui Barradas Em 22-08-2013 15:57, siddhartha.geddam at eclerx.com
2009 Jan 29
2
Stacking data
Hi I have data in the format below      Age            V1       V2      V3       V4    23646         45190 50333 55166 56271    26174         35535 38227 37911 41184    27723          25691 25712 26144 26398 and would like to sort it as follows                  Age      values     ind                 23646    45190    V1                26174   35535      V1                27723    25691     V2
2011 Nov 07
2
R-bash beginner
Hi, I am trying to run some R commands into my bash scripts and want to use shell variables in the R commands and store the output of R objects into shell variables for further usage in downstream analyses. So far I have managed the first, but how to get values out of R script? I am using "here documents" (as a starter, maybe something else is simpler or better; suggestions greatly
2005 Mar 29
4
slide show with R
Trying to use R to build an interactive "slide show", to be displayed on a projector. The purpose of the presentation is to show how one could construct a simple graph using R. It is meant as a general overview rather than as detailed instruction. For example, something like the following sequence of commands. At lecture time, I want the interpreter to read these commands one at a
2013 Mar 05
1
different colors for two wireframe spheres
Dear List, I have the code below adapted from the lattice-package examples to draw two spheres. I would now like to give both different surface colors, e.g. one red and one blue. ## 3-D surface parametrized on a 2-D grid n <- 10 tx <- matrix(seq(-pi, pi, length.out = 2*n), 2*n, n) ty <- matrix(seq(-pi, pi, length.out = n) / 2, 2*n, n, byrow = T) xx <-
2011 Apr 07
1
transform() on selective names. Is it possible?
Hi all, I am whitening my data: # code begins N <- 300 M <- 2 x <- matrix(data=rnorm(N*M, 0, 3)-10, ncol=M, nrow=N) y <- matrix(c(1,-2,-2,1), ncol=M, nrow=M) z <- data.frame(x %*% y) colnames(z) <- c('x','y') par(mfrow=c(1,3)) plot(z, pch=5, col="blue") whiten <- function(x) { (x-mean(x))/sd(x) } zz <- transform(z, x=whiten(x), y=whiten(y))
2001 Apr 02
1
na.omit() (PR#889)
Full_Name: Peter deVoil Version: 1.1 OS: i686-pc-linux-gnu Submission from: (NULL) (203.25.1.208) Hi, > zz <- c(3.2, 4.5, NA) > zzz <- c(3.2, 4.5, 5.5) If there are no NAs in the list: --- > length(na.omit(zzz)) [1] 0 --- I expected 3. But, if there are NAs, the correct answer is returned --- > length(na.omit(zz)) [1] 2 --- Yours, PdeV
2012 Mar 07
1
SELECT CASE in RODBC
Hi all, I have a problem with a variable created by a SELECT CASE statement. See the code below. I would like the variable "event" to be a character variabel as I want to UNION my two SELECTs - and the "event"-variable is a character variable in the first SELECT result. I have tried different ways: * used ' ' in stead of " " around the string I want as the
2007 Jul 16
1
Dict-server mysql module error
hi all when i setup plugin quota by quota = dict: mysql:/etc/quota-dict.conf i get the folowing error: deliver(zzzz at zzzz.zz): Unknown dict module: mysql deliver(zzzz at zzz.zz): dict quota: dict_init() failed quota-dict.conf: connect = host=localhost dbname=zzzz user=zzzz password=zzzz table = mailbox select_field = quota where_field = maildir username_field = username dovecot.conf: #
2016 Apr 07
2
Using a function with apply Error: undefined columns selected
I am trying to write a function that can be used to apply to process all the columns of a data.frame. If you will run the code below, you will get the error message undefined columns selected. I hope someone will be able to teach me what I am doing wrong. Thank you, John # create data frame. guppy fract2 <- function(col,data) { cat("Prove we have passed the data frame\n")
2015 Jul 01
1
[PATCH 1/2] utils: Add a test of the guestfs_int_drive_name function.
This function didn't have a unit test before. --- src/test-utils.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/test-utils.c b/src/test-utils.c index 8e1491f..c5e2f08 100644 --- a/src/test-utils.c +++ b/src/test-utils.c @@ -1,5 +1,5 @@ /* libguestfs - * Copyright (C) 2014 Red Hat Inc. + * Copyright (C) 2014-2015 Red Hat Inc. * *
2009 May 03
12
DNAT Question
Hi list, I have a shorewall installed on 2 interfaces which also has multiple static public IP. Let''s say I have 1.2.3.4 and 1.2.3.5. I have assigned nat with: 1.2.3.4 eth0 11.22.33.4 no no But then I have a situation where I need 11.22.33.44 to connect to a host in the net zone and appears also to be 1.2.3.5 not only 1.2.3.4. How to do it? TIA Willy
2013 Jan 06
1
Get CONNECTEDLINE info from other Asterisk system via IAX2
I have been racking my brain attempting to get the remote callerid information for calls made to extensions on another Asterisk system connected via IAX2 but nothing has worked. To clarify, I would like to display the number AND name on the calling phone when calling extensions on another Asterisk system. I seem to be able to 'send' all the information I want to the system I am calling but
2024 May 24
1
Samba suddenly acting strangely
On 5/23/24 22:58, Andrew Bartlett wrote: > Can you post your smb.conf. Actually no, as I don't have *one* smb.conf. I'll add three of them (the last three were I had this problem) at the end of this email. As you can see they are not exactly identical. > Have you used any of our fallback VFS modules instead of xattrs? I'd say not, but see the smb.confs. > (This would
2015 Jul 01
2
[PATCH v2 0/2] utils: Add guestfs_int_drive_index and unit test.
Since v1: - Test error cases in the unit test of guestfs_int_drive_index. Rich.
2012 Dec 01
1
setvar from chan_dahdi.conf
Would someone be able to give an example of a working use of setvar from chan_dahdi.conf? I am trying to create a custom variable like I use in sip.conf but I have been completely unsuccessful getting any variable set using setvar to appear for a DAHDI channel. I am running 1.8.11-cert8 and am using the newer format (but I have tried using the older [channels] format). Here is an example:
2007 May 23
1
Catenating factors.
I was recently asked by one of new colleagues how to combine, or catentate, or concatentate two factors. If x and y are factors, doing c(x,y) appears to coerce x and y to numeric mode before catenating them. So what does one do if one wants the result to be a factor whose levels are the union of the levels of x and y? I vaguely recall seeing this discussed in r-help, but I can't find
2007 May 02
1
how to concatinate the elements of some text vectors cat() or print() ?
I have some comment text taken from a SAS data file. It is stored in two vectors and is difficult to read. I would like to simply concatentate the individual entries and end up with a character vector that give me one line of text per comment. I cannot see how to do this, yet it must be very easy. I have played around with cat() and print with no success. Would someone kindly point out where I