Displaying 20 results from an estimated 9000 matches similar to: "Identifying and characterizing strings of NA in a vector"
2007 Oct 11
1
PS graphs in R 2.6.0
Dear R-users:
I have been working in R for few years and never I'd been the problems like this. I'm running the last R version and when I try to save a graph in PS format I have the next error
Error: Invalid font type
In addition: Warning messages:
1: font family not found in PostScript font database
2: font family not found in PostScript font database
I thinks it's curious
2008 Mar 06
2
How to hold a value(Mean sq) with a string
Hi all:
Can someone advice me on how to hold the residuals
Mean sq value on a string
so it can be used in other calculations.
I was trying something like this:
Msquare<-dfr$Mean sq but fails..Thanks
dfr <- read.table(textConnection("percentQ
Efficiency
1.565 0.0125
1.94 0.0213
0.876 0.003736
1.027 0.006
1.536 0.0148
1.536 0.0162
2.607 0.02
1.456 0.0157
2.16 0.0103
2006 Oct 16
1
plots: layout + subtitles
Hello,
I want to create a figure that consists of a collection of 16 graphs on
4 rows. I am using
nf <- layout(matrix(seq(1,16), 4,4, byrow=TRUE), respect=TRUE)
boxplot(...
to create the layout of my 16 graphs. It works really well. However, I'd
like to add sub-titles that would apply to each row of 4 graphs. More
specifically, I'd like to have something like:
subtitle 1
2007 Dec 19
5
assigning and saving datasets in a loop, with names changing with "i"
Dear R users,
I am analysing a very large data set and I need to perform several data
manipulations. The dataset is so big that the only way I can play with it
without having memory problems (E.g. "cannot allocate vectors of size...")
is to write a batch script to:
1. cut the data into pieces
2. save the pieces in seperate .RData files
3. Remove everything from the environment
4. load
2006 Oct 17
1
crush in edit()
Dear all,
I am new to R system. When I tried to edit data read from a csv file, R
system crushed, I got an error message as follows:
> edit(data)
*** buffer overflow detected ***: /usr/lib/R/bin/exec/R terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x49d020b1]
/lib/libc.so.6[0x49d034a2]
/usr/lib/R/modules//R_X11.so[0x33ed7a]
/usr/lib/R/modules//R_X11.so[0x34050d]
2006 Oct 17
1
crush in edit()
Dear all,
I am new to R system. When I tried to edit data read from a csv file, R
system crushed, I got an error message as follows:
> edit(data)
*** buffer overflow detected ***: /usr/lib/R/bin/exec/R terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x49d020b1]
/lib/libc.so.6[0x49d034a2]
/usr/lib/R/modules//R_X11.so[0x33ed7a]
/usr/lib/R/modules//R_X11.so[0x34050d]
2011 Mar 31
4
Re: How to recompile Wine on ARM
http://bugs.winehq.org/show_bug.cgi?id=26614
2008 Aug 28
2
Tidying up code - Warning message: deparse may be incomplete
Dear R users,
I am currently writing a R package and to do so I am following the
guidelines in manual 'Writing R extensions'.
In Section 3.1, it is suggested to tidy up the code using a file
containing the following:
options(keep.source = FALSE)
source("myfuns..R")
dump(ls(all = TRUE), file = new.myfuns.R")
I have done this for my own packages and although it runs, I get
2004 Jul 20
1
Error: subscript out of bounds
Hi
I am running a simulation that involves a loop calling three 2 functions that I have written. Everything works fine when the inside of the loop is performed up to 1000 times (for (i in 1:750)).
However, I sometimes get : ''Error: subscript out of bounds'' if I try to increase the loop 'size' to 1000. I am thinking it has to to with memory but I am not sure. I have
2007 Oct 18
2
characterizing I/O on a per zvol basis.
Hey all -
Time for my silly question of the day, and before I bust out vi and
dtrace...
If there a simple, existing way I can observe the read / write / IOPS on
a per-zvol basis?
If not, is there interest in having one?
Cheers!
Nathan.
2012 Apr 04
1
meta-analysis, outcome = OR associated with a continuous independent variable
Hello everyone,
I want to do a meta-analysis of case-control studies on which an OR was
computed based on a continuous exposure. I have found several several
packages (metafor, rmeta, meta) but unless I misunderstood their main
functions, it seems to me that they focus on two-group comparisons (binary
independent variable), and do not have the option of using a continuous
independent variable.
2008 Sep 16
4
HI
Does anyone know an easy way to convert all the zero values in a imported csv table into NA's
[[alternative HTML version deleted]]
2007 Nov 29
1
Prorating scale items
Hello,
I am hoping for some advice as to how I can prorate a number of scale
items that comprise a score. At least 69 of 159 cases have at least 1
value missing (65 cases have H7 missing). The maximum number of missing is
5.
I want to compute a total score, a score for the H items, the R items and
C items.
H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, C1, C2, C3, C4, C5, R1, R2, R3,
R4, R5
I am
2010 Mar 24
1
Converting a data set from 'long' format to 'interval' format
Hi,
I have a data set in which the variable 'dose' is time-varying. Currently,
the data set is in a long format, with 1 row for each time unit of follow-up
for each individual "Id". It looks like this:
orig.data <- cbind(Id = c(rep(1,4), rep(2,5)), time = c(1:4, 1:5), dose =
c(1,1,1,0,1,0,1,1,0))
orig.data
Id time dose
[1,] 1 1 1
[2,] 1 2 1
[3,] 1
2010 Sep 08
1
pairs and panel.smooth for two groups
Hi,
I have modified the USJudgeRatings data (available in R) to
illustrate my question.
# Use the first 4 variables of USJudgeRatings and add a group variable
with two levels
USJudgeRatings <- USJudgeRatings[,1:4]
USJudgeRatings$group <- factor(c(rep(1, 22), rep(0, 21)))
# I can draw a pairs graph where members of each group are drawn in
different colors:
pairs(USJudgeRatings[,1:4], col
2010 Aug 04
4
Adding collumn to existing data frame
Hi experts,
I am trying to write a very flexible method that allows me to add a
new column to an existing data frame. This is what I have so far:
add.column <- function(df, new.col, name) {
n.row <- dim(df)[1]
length(new.col) <- n.row
names(new.col) <- name
return(cbind(df, new.col))
}
df <- NULL
df <- data.frame(a=c(1,2,3))
df
# corect: added NA to new collumn
df <-
2007 Jul 02
1
download.file - it works on my Mac but not on Windows.
Hi:
I am working with someone remotely to allow them access to our data.
The follow command using "download.file" works perfectly on my Mac:
> > download.file(url="http://oceanwatch.pfeg.noaa.gov:8081/thredds/
> wcs/satellite/AG/ssta/14day?
> request=GetCoverage&version=1.0.0&service=WCS&format=NetCDF3&coverage=
>
2010 Apr 29
2
Split a vector by NA's - is there a better solution then a loop ?
Hi all,
I would like to have a function like this:
split.vec.by.NA <- function(x)
That takes a vector like this:
x <- c(2,1,2,NA,1,1,2,NA,4,5,2,3)
And returns a list of length of 3, each element of the list is the relevant
segmented vector, like this:
$`1`
[1] 2 1 2
$`2`
[1] 1 1 2
$`3`
[1] 4 5 2 3
I found how to do it with a loop, but wondered if there is some smarter
(vectorized) way
2018 Mar 07
2
RADIUS
Pete Biggs wrote:
>
>>> What do you want?
>>
>> I was asking for documentation telling me how RADIUS can be used, not only
>> that it can be used.
>
> RADIUS is just an authentication (plus a bit more) protocol - what you
> are asking is like asking how LDAP can be used. Usually it's treated
> like a magic black box by applications in that one of the
2009 Apr 20
4
graph with 15 combinations
Dear R helpers,
I have a data set with 4 types (W, C, E & S). Now I have values for all
types plus all possible combinations (the order is unimportant): W, C,
WC, E, WE, CE, WCE, S, WS, CS, WCS, ES, WES, CES & WCES. Ideally I would
like to represent everything in one graph and as concise as possible.
Drawing 4 circles and depicting it as overlap just gives me 13 out of
the 15