Displaying 20 results from an estimated 49 matches for "myvalues".
Did you mean:
mlvalues
2017 Jun 23
1
setReplaceMethod creates 'object' in the userworkspace
Hi,
I recognized that the function 'setReplaceMethod' is creating a
character vector in the user workspace having the name (e.g. "newClass")
of the class used as value. If you can sort out a mistake by myself, I
would like you to file a bug report.
BBFN,
Jonathan
setClass("newClass", representation(value="numeric"))
setMethod(f = "initialize",
2017 Jun 23
1
setReplaceMethod creates 'object' in the userworkspace
Hi,
I recognized that the function 'setReplaceMethod' is creating a
character vector in the user workspace having the name (e.g. "newClass")
of the class used as value. If you can sort out a mistake by myself, I
would like you to file a bug report.
BBFN,
Jonathan
setClass("newClass", representation(value="numeric"))
setMethod(f = "initialize",
2012 Jan 19
1
dataframe: how to select an element from a row
Hi,
I 'd like to select the Date where myvalue =1800 appears the* first time*.
For instance:
df =data.frame(date, myvalue, ...)
...
Date myvalue
2012-01-05 2500
2012-01-06 2450
*2012-01-07 1800*
2012-01-08 2200
2012-01-09 1800
I'd like to retrieve the third line.
I do
2012 Nov 30
5
subset data frame by variable with missing value
Hello,
I have a variable in a data frame that contains NA values. I just want to
subset so that I get the obs where that variable is missing.
In SAS I would do:
data missing;
set test;
if myvalue=' ';
run;
How can I perform this simple task in R?
Thanks in advance for your help.
--
View this message in context:
2017 Jun 27
0
[Rd] setReplaceMethod creates 'object' in the userworkspace
>>>>> Jonathan Fritzemeier <clausjonathan.fritzemeier at uni-duesseldorf.de>
>>>>> on Fri, 23 Jun 2017 16:15:30 +0200 writes:
> Hi,
> I recognized that the function 'setReplaceMethod' is creating a
> character vector in the user workspace having the name (e.g. "newClass")
> of the class used as value. If you can
2005 Aug 04
4
An small suggestion for the R team
Hi all,
I would like to suggest that all R functions/etc like:
codes-deprecated
grid-internal
ns-alt
ns-dblcolon
ns-hooks
ns-internals
ns-lowlev
ns-reflect.Rd
tools-internal
ts-defunct
utils-deprecated
utils-internal
... and another
i.e, function/word separate for '-'
were all substituted by
codes_deprecated
grid_internal
ns_alt
2010 Jan 15
2
[LLVMdev] [PATCH] - Union types, attempt 2
On 01/15/2010 11:37 AM, Talin wrote:
> Yes, that's closer to the frontend semantics: the variants of a
> union type don't have any natural ordering, so list semantics could
> cause problems.
I agree. I probably shouldn't even comment, as I know so little about
LLVM. But I've hand-written a couple kLOC of IR now and am starting to
get a feel for the
2010 Feb 17
2
multi-argument returns
Dear R users,
I have multi-argument returns in a function and I am warned by the program
they are deprecated.
I have found this in the R-help archives :
http://tolstoy.newcastle.edu.au/R/help/01c/0319.html
http://tolstoy.newcastle.edu.au/R/help/01c/0356.html
Since I am not too good at programming, the list solution seems the better
one for me. It is also the one advocated by Kevin Murphy.
So
2011 Mar 30
2
summing values by week - based on daily dates - but with some dates missing
...up.2 2009-01-12 3.4411
...
Thanks a lot for your suggestions! The code is below:
Dimitri
### Creating example data set:
mydates<-rep(seq(as.Date("2008-12-29"), length = 43, by = "day"),2)
myfactor<-c(rep("group.1",43),rep("group.2",43))
set.seed(123)
myvalues<-runif(86,0,1)
myframe<-data.frame(dates=mydates,group=myfactor,value=myvalues)
(myframe)
dim(myframe)
## Removing same rows (dates) unsystematically:
set.seed(123)
removed.group1<-sample(1:43,size=11,replace=F)
set.seed(456)
removed.group2<-sample(44:86,size=11,replace=F)
to.remove<...
2011 Jul 22
1
Summing values by weekday and weekend - based on daily dates
Hi, all
Here I created a data frame like
mydates<- seq(as.Date("2010-05-29"), length = 43, by = "day")
myvalues<-runif(43,0,1)
myframe<-data.frame(dates=mydates, day=weekdays(dates), value=myvalues)
dates day value
1 2010-05-29 Saturday 0.14576143
2 2010-05-30 Sunday 0.37669604
3 2010-05-31 Monday 0.74813943
4 2010-06-01 Tuesday 0.34677680
...
39 2010-07-06 Tuesday...
2012 Mar 29
1
histogram break width
Hi all,
I am generating histograms with the following R script :
#!/usr/bin/Rscript
out_file = "histo.png"
png(out_file)
scan("values.csv") -> myvalues
hist(myvalues, breaks = 50)
dev.off()
print(paste("Plot was saved in:", getwd()))
I want the histogram to have a larger number of breaks, but a smaller
break width, the idea is to make it appear smoother like a filled
curve. If I keep increasing breaks it starts looking messy. Any
sug...
2008 Feb 06
1
Histogram/Bar plot graph
Hi,
I have the following data:
> Myvalues
Gene ES MEF Embryo ESHyp
1 GeneA -0.38509507 0.00 1.6250 1.7039921
2 GeneB 0.06262914 0.00 1.6250 -0.272033
and so on...
I want to plot the expression values of GeneA and GeneB in the
different cell/embryo/conditions (columns 2:5 above). Now, if I do:
>library(...
2009 Oct 16
1
Frequencies, proportions & cumulative proportions
Dear R-Helpers,
I've looked high and low for a function that provides frequencies,
proportions and cumulative proportions side-by-side. Below is the table
I need. Is there a function that already does it?
Thanks,
Bob
> # Generate some test scores
> myValues <- c(70:95)
> Score <- ( sample( myValues, size=1000, replace=TRUE) )
> head(Score)
[1] 77 71 81 88 83 93
>
> # Get frequencies & proportions
> myTable <- data.frame( table(Score) )
> myTable$Prop <- prop.table( myTable$Freq )
> myTable$CumProp <- cumsum( m...
2011 Jul 22
1
Summing daily values by weekday and weekend
(Sorry for reposting. Please delete previous msgs. Thanks!)
Hi, all
Here I created a data frame like
mydates<- seq(as.Date("2010-05-29"), length = 43, by = "day")
myvalues<-runif(43,0,1)
myframe<-data.frame(dates=mydates, day=weekdays(dates), value=myvalues)
dates day value
1 2010-05-29 Saturday 0.14576143
2 2010-05-30 Sunday 0.37669604
3 2010-05-31 Monday 0.74813943
4 2010-06-01 Tuesday 0.34677680
?
39 2010-07-06 Tuesday...
2019 Nov 11
2
Troubles using numeric in s4 class union
Hi all,
I came across an issue in using the Matrix package which made it that I
could only subset Matrices using the numeric class, but could not using
integers. Steps to reproduce the problem:
library(Matrix)
# this class has *nothing* to do with Matrix
setClass("MyClass",
representation(myvalue = "numeric"),
prototype(myvalue = NA_real_))
# this class also has
2013 Jan 28
5
[LLVMdev] Value* to Instruction*/LoadInst* casting
Hello everyone,
Can you please tell me if it is possible in LLVM to cast a `Value*` to an
`Instruction*/LoadInst*` if for example `isa<LoadInst>(MyValue)` is true?
In my particular piece of code:
Value* V1 = icmpInstrArray[i]->getOperand(0);
Value* V2 = icmpInstrArray[i]->getOperand(1);
if (isa<LoadInst>(V1) || isa<LoadInst>(V2)){
...
2006 Jun 12
2
conditional validation
Hi how can I validate a field only if another field is set to a specific value?
I tried to use
validates_length_of :fieldname, :maximum => 100, :if =>
:otherfieldname == ''myvalue''
But doesn''t work
Thanks
Paolo
2009 Apr 22
2
Returning Variables in R to Linux Shell
If I have an R script that I am executing from a command line in linux,
do you know how I can return the value of the variable in my R script to
the linux environment without writing it to a file in my R script and
then reading the file through cat?
For example, if I had a simple one line R script that just did
string <- 'TEST',
when I call
/usr/local/bin/R
2012 Feb 26
3
count how many row i have in a txt file in a directory
Dear Researchers,
I have a large TXT (X,Y,MyValue) file in a directory and I wish to import
row by row the txt in a loop to save only the data they are inside a buffer
(using inside.owin of spatstat) and delete the rest. The first step before
to create a loop row-by-row is to know how many rows there are in the txt
file without load in R to save memory problem.
some people know the specific
2010 Jan 16
0
[LLVMdev] [PATCH] - Union types, attempt 2
Dustin Laurence wrote:
> On 01/15/2010 11:37 AM, Talin wrote:
>
>> Yes, that's closer to the frontend semantics: the variants of a
>> union type don't have any natural ordering, so list semantics could
>> cause problems.
>
> I agree. I probably shouldn't even comment, as I know so little about
> LLVM. But I've hand-written a couple