search for: myvalu

Displaying 20 results from an estimated 49 matches for "myvalu".

Did you mean: myvalue
2017 Jun 23
1
setReplaceMethod creates 'object' in the userworkspace
...file a bug report. BBFN, Jonathan setClass("newClass", representation(value="numeric")) setMethod(f = "initialize", signature = "newClass", definition = function(.Object){ .Object at value <- 1 return(.Object) }) setGeneric(name = "myValue", def = function(object) { standardGeneric("myValue") } ) setGeneric(name = "myValue<-", def = function(object, value) { standardGeneric("myValue<-") } ) setMethod("myValue", signature(object = "newClass"), functio...
2017 Jun 23
1
setReplaceMethod creates 'object' in the userworkspace
...file a bug report. BBFN, Jonathan setClass("newClass", representation(value="numeric")) setMethod(f = "initialize", signature = "newClass", definition = function(.Object){ .Object at value <- 1 return(.Object) }) setGeneric(name = "myValue", def = function(object) { standardGeneric("myValue") } ) setGeneric(name = "myValue<-", def = function(object, value) { standardGeneric("myValue<-") } ) setMethod("myValue", signature(object = "newClass"), functio...
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...
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: http://r.789695.n4.nabble.com/subset-data-frame-by-variable-with-missing-value-tp4651439.html Sent from the R help mailing list archive at Nabble.com.
2017 Jun 27
0
[Rd] setReplaceMethod creates 'object' in the userworkspace
...lass("newClass", representation(value="numeric")) > > setMethod(f = "initialize", signature = "newClass", > definition = function(.Object){ > .Object at value <- 1 > return(.Object) > }) > > setGeneric(name = "myValue", > def = function(object) { standardGeneric("myValue") } > ) > setGeneric(name = "myValue<-", > def = function(object, value) { standardGeneric("myValue<-") } > ) > > setMethod("myValue", signature(object =...
2005 Aug 04
4
An small suggestion for the R team
..._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, by '_' Because it is impossible to make a good highlighter with the first one. How to differentiating myValue: varOne = 100 varTwo = 50 myValue = varOne-varTwo from codes-deprecated, or ns-alt, for example. TIA, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: joseclaudio.faria at terra.com.br jc_faria at uesc.br jc_faria at uol.com.br tel: 73-3634.2779
2010 Jan 15
2
[LLVMdev] [PATCH] - Union types, attempt 2
...constraints, but that would be architecture dependent and I assume should therefore be invisible). Correct? If that argument is persuasive, then the following seems a bit more consistent with the existing syntax: ; Manipulation of a union register variable %myUnion = unioncast i32, %myValue to union {i32, float} %fieldValue = unioncast union {i32, float} %myUnion to i32 ; %fieldValue == %myValue This specialized union cast fits the pattern of having specialized cast operations between value and pointer as opposed to two values or two pointers. That's enough, as you...
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 Tuesd...
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 s...
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: >librar...
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(...
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 Tuesd...
2019 Nov 11
2
Troubles using numeric in s4 class union
...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 nothing to do with Matrix setClassUnion("NumOrMyClass", c("numeric", "MyClass")) # this is to demonstrate creating and subsetting a specific Matrix m <- new("dgCMatrix", i =...
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)){ ... if(isa<LoadInst>(icmpInstrArray[i]->getOperand(0))) LoadIn...
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...
2010 Jan 16
0
[LLVMdev] [PATCH] - Union types, attempt 2
...rchitecture dependent and I > assume should therefore be invisible). Correct? > > If that argument is persuasive, then the following seems a bit more > consistent with the existing syntax: > > ; Manipulation of a union register variable > %myUnion = unioncast i32, %myValue to union {i32, float} > %fieldValue = unioncast union {i32, float} %myUnion to i32 > ; %fieldValue == %myValue > > This specialized union cast fits the pattern of having specialized cast > operations between value and pointer as opposed to two values or two > pointers...