similar to: conditional value assignment

Displaying 20 results from an estimated 100 matches similar to: "conditional value assignment"

2010 Mar 06
1
transposing data
Hi. I have repeated measures data of the form where each observation is a trial, and trials are grouped by subject, and variables encode whatever level of a factor was present during that trial, and the dependent variable is response time (RT). I want to transpose the data to a form suitable for MANOVA such that there is one observation per subject and RT is recoded across many
2011 Apr 10
2
list to data frame
I need to make a data frame out of the data that I currently have in a list. This works, but is ugly: ineffData<-rbind(ineffFilesList[[1]], ineffFilesList[[2]], ineffFilesList[[3]], ineffFilesList[[4]], ineffFilesList[[5]], ineffFilesList[[6]], ineffFilesList[[7]], ineffFilesList[[8]], ineffFilesList[[9]], ineffFilesList[[10]], ineffFilesList[[11]], ineffFilesList[[12]], ineffFilesList[[13]],
2011 Apr 07
2
replace an expression with its value, or read macros
I know my subject line seems odd, but I want to replace an expression—such as a variable—with its value. For example, I want to paste() some strings together, assign the result to a variable s, then use the value of s as a variable to hold another value. Something like this: import_subjects <- function (start, iterations) { for (i in 1:iterations) { # iterate from start to end s <-
2010 Feb 21
1
tests for measures of influence in regression
influence.measures gives several measures of influence for each observation (Cook's Distance, etc) and actually flags observations that it determines are influential by any of the measures. Looks good! But how does it discriminate between the influential and non- influential observations by each of the measures? Like does it do a Bonferroni-corrected t on the residuals identified by
2012 Apr 09
2
return one vector that is the sum of a list of vectors
Dear R Help, I am attempting to write a function that takes a list of variable groups and a vector of numbers (e.g., "jtsv" would indicate one group of variables, "jtsv1", "jtsv2", etc, each of which name a variable in a data frame), and returns a list of variable group sums. For example, given list("jtsv", "ptsv") and c(1:10), where jtsv1, etc,
2015 Jul 30
2
POSIX-Share fails with NFS-mounts
Hi there, I'm sure this must have been discussed before, but I can't find anything that addresses exactly my problem in the archives. The problem I ran into is, that a samba-share relying on POSIX file-permissions stops working as soon as the shared folder is a NFS-mount itself. In that case, it is no longer possible for any user to access files or folders. So in my example, if
2008 Feb 08
2
R version of SAS Proc Varclus
I am interested in finding an R version of SAS "Proc Varclus". SAS's Proc Varclus implements an oblique cluster analysis based on principal components. How can I find out if R has a package that runs the same algorithm implemented in SAS "Proc Varclus"? Thank you, Mary Helen Black __________________________ Mary Helen Black, M.S. Keck School of Medicine of USC
2006 Jul 31
2
math symbols and text with mtext()
Dear R users, Two questions: 1) Is there a way to simplify the mtext() line below ? beta=c(1,-1) m=5 plot(1) mtext( bquote(paste( beta == .(paste( "(", paste(beta, collapse=", "), ")" )) )), outer=TRUE,line=-3) 2) How do I get the embedded carriage return "\n" below to work, i.e for the text that follows it to appear on the next line? beta=c(1,-1) m=5
2008 Sep 10
2
trouble printing from graphics device in R 2.7.2
Hi, I've been using R for many years and have always tried to keep my R version up to date, and when I switched from 2.7.1 to 2.7.2 I'm suddenly having trouble printing from the graphics device. I have Windows XP, and installed both versions of R from the binaries. If I start 2.7.2 and simply do: > plot(1:10) the default R Graphics Device window opens as usual. However, when I
2007 Apr 17
2
Use of argument '...'
Dear R list, I've read the function writing sections on both "An introduction to R" and "R language Definition" manuals but still don't understand why the following gives an error message: fun <- function(x, ...) x + y fun(1, y=2) I get: Error in fun(1, y = 2) : object "y" not found I'd appreciate any help in understanding this. R version 2.4.1
2009 Feb 23
1
[S] ASA Southern California Chapter Applied Statistics Workshop
The workshop organizing committee of the Southern California Chapter of the American Statistical Association announces the 28th Annual Workshop in Applied Statistics. Professor Colin Cameron from the department of Economics at UC Davis will give a one-day workshop titled "Advances in Count Data Regression." The event will take place on Saturday, March 28, 2009 at UCLA. Details on
2006 Jun 23
1
numeric variables converted to character when recoding missing values
Dear R helpers, I have a data frame where missing values for numeric variables are coded as 999. I want to recode those as NAs. The following only partially succeeds because numeric variables are converted to character in the process: df <- data.frame(a=c(999,1,999,2), b=LETTERS[1:4]) is.na(df[2,1]) <- TRUE df a b 1 999 A 2 NA B 3 999 C 4 2 D is.numeric(df$a) [1] TRUE
2006 Aug 11
1
[BioC] problem loading affycoretools (more details)
Hi again, I have been playing around with the order of loading packages, and as far as I can tell, there's nothing specific with affycoretools that's causing my Rgui to crash (i.e., shuts down and the Microsoft 'please send error report' box pops up). Instead, it has something to do with the order & type of packages that are loaded that add items to the menu bar by
2007 May 25
1
Speeding up resampling of rows from a large matrix
I'm trying to: Resample with replacement pairs of distinct rows from a 120 x 65,000 matrix H of 0's and 1's. For each resampled pair sum the resulting 2 x 65,000 matrix by column: 0 1 0 1 ... + 0 0 1 1 ... _______ = 0 1 1 2 ... For each column accumulate the number of 0's, 1's and 2's over the resamples to obtain a 3 x 65,000 matrix G. For those
2015 Nov 01
3
Openvpn and samba: play nice together?
You definetly need a TAP connection to make samba work over VPN. We use OpenVPN host2net-accounts created with IPCop here since quite a while and it works with samba without problems. However, the speed is of course not as fast as in local net, but this is rather related to the way the SMB-protocoll works. ;-) ________________________________________ Von: samba [samba-bounces at
2009 Oct 29
1
change in default behavior of ?functionname in R 2.10?
Hi everyone, I just installed R 2.10 using the Windows binary. At some point in the past using the Windows binary installation, the default behavior of ?functionname changed from plain text to a nice html interface. Now with R 2.10, the default behavior has changed back to the plain text help. I assume this has some thing to do with these changes listed for R 2.10, but I don't quite
2007 Jun 19
3
Controlling text and strip arrangement in xyplot
I've searched the archives and read the xyplot help but can't figure out the 2 lattice questions below? Consider: library(lattice) DF <- data.frame(x=rnorm(20), y=rnorm(20), g1=rep(letters[1:2], 10), g2=rep(LETTERS[1:2], each=10), g3=rep(rep(letters[3:4],each=5),2)) xyplot(y ~ x | g1 + g2, groups=g3, data=DF) 1) Is there a way to get one strip per row and column
2010 Dec 05
0
[LLVMdev] [cfe-dev] Unexpected results from _Bool cast
Hello- Yes, this is a bug. This code gives the expected result (1) for me under the current svn HEAD. Alistair On 5 Dec 2010, at 09:04, Dave Keck wrote: > Hey list, > > The following program outputs '0' when compiled on my system with `clang a.c`: > > #include <stdio.h> > int main(int argc, const char *argv[]) > { >
2015 Jul 30
0
POSIX-Share fails with NFS-mounts
On Thursday 30 July 2015 09:28:46 Christian Keck wrote: > Hi there, > > I'm sure this must have been discussed before, but I can't find anything > that addresses exactly my problem in the archives. > > The problem I ran into is, that a samba-share relying on POSIX > file-permissions stops working as soon as the shared folder is a NFS-mount > itself. In that case,
2015 Nov 02
0
Openvpn and samba: play nice together?
openVPN with TUN connection works perfect here. I configured 2 TUN connections to connect two remote offices(over DSL line) to our main site without any issue. Here is my configuration: Main site: samba4 AD DC server1, plus a file server1, and a dedicated openVPN server site1: samba4 AD DC server2, plus a file server2, and a dedicated openVPN server with TUN connection to the main site