similar to: storage and single-precision

Displaying 20 results from an estimated 10000 matches similar to: "storage and single-precision"

2011 Apr 14
1
integer and floating-point storage
I note that "current implementations of R use 32-bit integers for integer vectors," but I am working with large arrays that contain integers from 0 to 3, so they could be stored as unsigned 8-bit integers. Can R do this? (FYI -- This is for storing minor-allele counts for genetic studies. There are 0, 1 or 2 minor alleles and 3 would represent missing.) It is theoretically possible
2012 Oct 02
1
R process must die - can I save history?
I connected from my desktop Linux box to a Linux server using ssh in an xterm, but that xterm was running in Xvnc. I'm running R on the server in that xterm (over ssh). Something went wrong with Xvnc that has caused it to hang, probably this bug: https://bugs.launchpad.net/ubuntu/+source/vnc4/+bug/819473 So I can't get back to that ssh session or to R. I had done a bunch of work
2005 Apr 04
1
R package that has (much) the same capabilities as SAS v9 PROC GENMOD
I need capabilities, for my data analysis, like the Pinheiro & Bates S-Plus/R package nlme() but with binomial family and logit link. I need multiple crossed, possibly interacting fixed effects (age cohort of twin when entered study, sex of twin, sampling method used to acquire twin pair, and twin zygosity), a couple of random effects other than the cluster variable, and the ability to
2011 Jan 24
1
determining the order in which points are plotted
I make plenty of scatterplots, especially using scatterplot.matrix from library(car). One thing I don't know how to do is determine which points are plotted last. Sometimes I plot a large number of points for multiple groups represented by different colors. I would like to guarantee that point that are far from the centroid for their group are plotted last. This way they will be
2011 May 02
1
UNIX-like "cut" command in R
The R "cut" command is entirely different from the UNIX "cut" command. The latter retains selected fields in a line of text. I can do that kind of manipulation using sub() or gsub(), but it is tedious. I assume there is an R function that will do this, but I don't know its name. Can you tell me? I'm also guessing that there is a web page somewhere that will tell
2009 Apr 24
1
use of "input" in system()
First, it looks like there is bug in the documentation... According to the documentation for system(): http://stat.ethz.ch/R-manual/R-patched/library/base/html/system.html input if a character vector is supplied, this is copied one string per line to a temporary file, and the standard input of command is redirected to the file This seems to mean that the standard input
2010 Jun 27
2
floating point in single precision
Hello, is there a possibilty in R to convert numbers (double precision, 64bit) into single precision ones (32bit). I need that for compatibility reasons. Until now I call a C application which casts a double to a float. float precision32(double value) { return (float)value; } But I want to use a R only method. What can I do? Kind regards, Sebastian
2006 Nov 09
2
Single precision data behaviour with readBin()
Hi all, I am running R version 2.4.0 (2006-10-03) on an i686 pc with Mandrake 10.2 Linux. I was given a binary data file containing single precision numbers that I would like to read into R. In a previous posting, someone suggested reading in such data as double(), which is what I've tried: > zz <- file(file, "rb") > h1 <- readBin(con = zz, what = double(), n = 1, size
2011 Aug 05
1
If find x, then y, else do nothing
I want to write code that says "If you find an element equal to 4 in this vector for each person in the data set tested separately, then put in 1 for 2 and 2 for 4, else leave the variable as is" u.ppl <- (unique(init.dat1$grid)) l.ppl <- length(u.ppl) for (i in 1:l.ppl) { if (grep("4",init.dat1$Slide1_RESP)) {2 == 1, 4 == 2}; else
2007 Jan 09
1
MINNESOTA: TwinCities Asterisk Users Group - Saturday January 13th 2007 - 11:30am
This is a reminder that the Twin Cities Asterisk Users Group will be meeting this Saturday, January 13 at 11:30am. - This month's meeting will focused on IP Telephony (VoIP) and network security, threats, defenses and countermeasures you can use to strengthen your Asterisk system. Meetings are held monthly on the second Saturday of each month, excluding July and December. The Agenda is
2011 Aug 22
1
Counting Elements Conditionally
R - I have 3 variables with data below. Variable "Rev" is a vector that changes from 1 to 2, 2 to 3, etc.... Variable "FF" is a binary variable with 1's and 0's. Variable "bin" is a different binary variable with 1's and 0's. I want to calculate the number of elements: 1. Starting with the first element where Rev switches (i.e. 1 to 2) 2. The
2007 Sep 04
1
bootstrap confidence intervals with previously existing bootstrap sample
Dear R users, I am new to R. I would like to calculate bootstrap confidence intervals using the BCa method for a parameter of interest. My situation is this: I already have a set of 1000 bootstrap replicates created from my original data set. I have already calculated the statistic of interest for each bootstrap replicate, and have also calculated the mean for this statistic across all the
2011 Jul 27
1
Hidden Markov Models in R
R Community - I am attempting to fit a model as described in Hampton, Bossaerts, and O'doherty (J. Neuroscience) 2006. They use a bayesian hidden markov model to model the Reversal Learning data. I have tried using HMM and depmixS4 with no success. My data is a Reversal Learning Task in which there are 3 sets of patterns over 3 blocks. The participant receives incorrect or correct
2011 Jun 28
2
Loop through each subject
R help - I am attempting to write a script that has multiple subjects in 1 data file. Each subject has multiple rows with columns as variables. Here is my code, I am having problem executing it on each unique subject id (dat$Subject). getwd() setwd("/Users/edwardpatzelt/Desktop/Neuroimaging/MERIT/SRRT/merge") dat <- read.table("test2.txt", header = TRUE, na.strings
2001 Feb 15
2
Reading single precision floats from binary file
Dear all, I have a few files with binary data written by a C program a friend wrote. I allready have program to read these files, Thomas Lumley and Prof Brian D Ripley was kind enough to respond to a question to this list earlier with some code that works perfectly, so this is really no problem, it is more out curiousity. Most of my files consists of 40000 single precision floats, and I figured
2005 Dec 05
2
plot() and points() precision control
Hi all, I have a problem in that when I plot points that have a high degree of precision, some significant rounding seems to occur, resulting in uneccessary overlap of my points. Is there a way to specify the resolution or precision in plotting functions? Is there an underlying grid I have to modify somehow? Many Thanks, Jon -- Mares eat oats and does eat oats and little lambs eat ivy. A
2009 Oct 30
1
[LLVMdev] LLVM Users in the Twin Cities?
Kenneth had a good idea trying to organize local LLVM user chapters. Anyone else in the Twin Cities hacking on LLVM? I'd love to get together sometime. -Dave
2007 May 09
0
MINNESOTA: Twin Cities Asterisk Users Group - Saturday May 12th 2007 - 11:30am
There will be a Twin Cities Asterisk Users Group meeting this Saturday, May 12th, at 11:30 'til about 1:30 at the Atacomm Corporate Offices at 7365 Kirkwood Court N., Suite 350, Maple Grove, Minnesota 55369. Although there is no formal program scheduled, we'll chat about Asterisk applications including interesting dial plans including one enabling Asterisk systems to keep an eye (ear?) on
2011 Jun 21
1
Getting SNPS from PLINK to R
snpMatrix package is quite nice (read.plink())
2010 Mar 24
2
Exclude data using logical
Hi, I'm wanting to exclude data more than 2 sd's from the mean before proceeding with further analyses. I've created new logical variables (a and b) and written them to the existing dataframe. I want to be able to subset the TRUE observations based on another 2 factor variable. I'm assuming this is possible, but I don't know what I'm doing wrong, as I get results that