similar to: Printout and saved results

Displaying 20 results from an estimated 3000 matches similar to: "Printout and saved results"

2024 Mar 26
1
Printout and saved results
Not clear what you mean by "saved". If you call a function and the result is printed, the result is remembered for a wee while in the variable .Last.value, so you can do > function.with.interesting.result(.......) > retained.interesting.result <- .Last.value or even > .Last.value -> retained.interesting.result If you know before you start writing the expression that you
2024 Mar 26
1
Printout and saved results
I just like the subroutine to spit out results (Mean, Std.dev, etc.) and also be able to access the results for further processing, i.e., v$Mean v$Std.dev On 3/26/2024 11:24 AM, Richard O'Keefe wrote: > Not clear what you mean by "saved". > If you call a function and the result is printed, the result is > remembered for a wee while in > the variable .Last.value, so
2024 Mar 26
1
Printout and saved results
Your desire is not unusual among novices... but it is really not a good idea for your function to be making those decisions. Look at how R does things: The lm function prints nothing... it returns an object containing the result of a linear regression. If you happen to call it directly from the R command prompt and don't assign it to a variable, then the command interpreter notices that
2024 Mar 26
1
Printout and saved results
Just FYI, the R interpreter typically saves the last value returned briefly in a variable called .Last.value that can be accessed before you do anything else. > sin(.5) [1] 0.4794255 > temp <- .Last.value > print(temp) [1] 0.4794255 > sin(.666) [1] 0.6178457 > .Last.value [1] 0.6178457 > temp [1] 0.4794255 > invisible(sin(0.2)) > .Last.value [1] 0.1986693 So perhaps if
2009 Oct 13
2
gee: suppress printout
I'm using the function gee from the library(gee) gee(Y~X,id=clust.id,corstr="exchangeable",b=tmc$coef,family=binomial(link=logit),silent=T) Every time it runs, it dutifully prints out Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27 user's initial regression estimate [,1] [1,] -4.5278335 [2,] -0.2737999 [3,] -0.9528306 [4,] 0.9393861 [5,]
2009 Jun 14
1
[LLVMdev] A question about printout the SeletionDAG
commend "llvm-dis" can print out the LLVM IR but is there any way to printout the SelectionDAG? like: add (x , add (y,z)) Thank you for your assistance, Kao Chang _________________________________________________________________ 用部落格分享照片、影音、趣味小工具和最愛清單,盡情秀出你自己 — Windows Live Spaces http://home.spaces.live.com/?showUnauth=1&lc=1028 -------------- next part -------------- An HTML
2010 Feb 06
1
How to suppress vector indexes in printout
I'm a newbie in R and my question is simple. When I type something like this: > x=rnorm(10) > x [1] 0.5804216 -1.1537118 -0.3222235 0.7117290 -1.0918811 0.3992606 [7] -0.1800837 0.4168152 -0.2077298 -0.2595467 > 1 [1] 1 > I'm getting indexes in the first column ([1], [7], etc.) How to suppress them temporarily to get this: > x=rnorm(10) > x 0.5804216 -1.1537118
2007 Nov 28
2
smbclient printout
Hello, Sorry, I guess my first post wasn't allowed - perhaps because I had HTML embedded in it? Question: Is there a way that I can have the output of smbclient be redirected to a file and have it updated every time someone opens / closes a file in the share? The only idea that I have thus far is to write a script that would output this data to a log file, and have the script
2011 Jun 26
2
how to extract data from a function printout - example provided
Hi there, Does anyone know how to extract data from a function that prints out two or more summaries? In the function below (the whole code is provided) we get 5 different tables of data. I would like to split each of these tables in a separate file (while the function itself shouldn't be changed), so that further analysis on each data set could be carried out. Your help is deeply
2008 Jun 30
0
[ wxruby-Feature Requests-20905 ] Add MapXXX methods to Wx::Printout
Feature Requests item #20905, was opened at 2008-06-30 18:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=221&aid=20905&group_id=35 Category: Missing method(s) in class Group: None Status: Open Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Add MapXXX methods to Wx::Printout Initial Comment: These are
2013 Mar 12
5
extract values
Hello all! I have a problem to extract values greater that for example 1820. I try this code: x[x[,1]>1820,]->x1 Please help me! Thank you! The data structure is: structure(c(2.576, 1.728, 3.434, 2.187, 1.928, 1.886, 1.2425, 1.23, 1.075, 1.1785, 1.186, 1.165, 1.732, 1.517, 1.4095, 1.074, 1.618, 1.677, 1.845, 1.594, 1.6655, 1.1605, 1.425, 1.099, 1.007, 1.1795, 1.3855, 1.4065, 1.138, 1.514,
2011 May 08
2
Device context (get_dc) Question from printing.rb in wxRuby samples
I am using Windows XP SP 3 but want to stay general. Below is a method within printing.rb. I have added comments marked by #--. My question is about get_dc. The device context is obviously created and the code works as presented. It also works as documented below. Why does just get_dc satisfy the linkage? When does one use the Wx:: or the Wx::PrintOut format? How does one decide to use
2014 Feb 16
0
[PATCH] drm/nouveau/bios: fix INDEX_ADDRESS_LATCHED trace printout
Having a \n in the middle of a format string means that the next line doesn't get the prefixes unlike every other line printed by the trace. Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- drivers/gpu/drm/nouveau/core/subdev/bios/init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/init.c
2013 Mar 13
2
merge datas
Hello all! I have a problem with R. I try to merge data like this: structure(c(2.1785, 1.868, 2.1855, 2.5175, 2.025, 2.435, 1.809, 1.628, 1.327, 1.3485, 1.4335, 2.052, 2.2465, 2.151, 1.7945, 1.79, 1.6055, 1.616, 1.633, 1.665, 2.002, 2.152, 1.736, 1.7985, 1.9155, 1.7135, 1.548, 1.568, 1.713, 2.079, 1.875, 2.12, 2.072, 1.906, 1.4645, 1.3025, 1.407, 1.5445, 1.437, 1.463, 1.5235, 1.609, 1.738, 1.478,
2007 Mar 20
1
centos raid 1 question
Hi, im having this on my screen and dmesg im not sure if this is an error message. btw im using centos 4.4 with 2 x 200GB PATA drives. md: md0: sync done. RAID1 conf printout: --- wd:2 rd:2 disk 0, wo:0, o:1, dev:hda2 disk 1, wo:0, o:1, dev:hdc2 md: delaying resync of md5 until md3 has finished resync (they share one or more physical units) md: syncing RAID array md5 md: minimum _guaranteed_
2024 Feb 29
2
Initializing vector and matrices
You could declare a matrix much larger than you intend to use. This works with a few megabytes of data. It is not very efficient, so scaling up may become a problem. m22 <- matrix(NA, 1:600000, ncol=6) It does not work to add a new column to the matrix, as in you get an error if you try m22[ , 7] but convert to data frame and add a column m23 <- data.frame(m22) m23$x7 <- 12 The only
2023 Feb 12
2
Removing variables from data frame with a wile card
x["V2"] is more efficient than using drop=FALSE, and perfectly normal syntax (data frames are lists of columns). I would ignore the naysayers, or put a comment in if you want to accelerate their uptake. As I understand it, one of the main reasons tibbles exist is because of drop=TRUE. List-slice (single-dimension) indexing works equally well with both standard and tibble types of data
2023 Aug 06
2
Stacking matrix columns
You could also do dim(x) <- c(length(x), 1) On Sat, Aug 5, 2023, 20:12 Steven Yen <styen at ntu.edu.tw> wrote: > I wish to stack columns of a matrix into one column. The following > matrix command does it. Any other ways? Thanks. > > > x<-matrix(1:20,5,4) > > x > [,1] [,2] [,3] [,4] > [1,] 1 6 11 16 > [2,] 2 7 12 17 > [3,]
2023 Jan 14
2
Removing variables from data frame with a wile card
I have a data frame containing variables "yr3",...,"yr28". How do I remove them with a wild card----something similar to "del yr*" in Windows/doc? Thank you. > colnames(mydata) ? [1] "year"?????? "weight"???? "confeduc"?? "confothr" "college" ? [6] ... ?[41] "yr3"??????? "yr4"???????
2024 Feb 29
1
Initializing vector and matrices
x <- numeric(0) for (...) { x[length(x)+1] <- ... } works. You can build a matrix by building a vector one element at a time this way, and then reshaping it at the end. That only works if you don't need it to be a matrix at all times. Another approach is to build a list of rows. It's not a matrix, but a list of rows can be a *ragged* matrix with rows of varying length. On Wed,