similar to: searching help for partial matches

Displaying 20 results from an estimated 1000 matches similar to: "searching help for partial matches"

2009 Aug 05
7
why is 0 not an integer?
Why when I assign 0 to an element of an integer vector does the type change to numeric? Here is a particularly perplexing example: > v <- 0:10 > v [1] 0 1 2 3 4 5 6 7 8 9 10 > class(v) [1] "integer" > v[1] <- 0 > class(v) [1] "numeric" #!! > -- View this message in context:
2009 Aug 05
7
why is 0 not an integer?
Why when I assign 0 to an element of an integer vector does the type change to numeric? Here is a particularly perplexing example: > v <- 0:10 > v [1] 0 1 2 3 4 5 6 7 8 9 10 > class(v) [1] "integer" > v[1] <- 0 > class(v) [1] "numeric" #!! > -- View this message in context:
2009 Jul 08
2
print() to file?
I'd like to write some objects (eg arrays) to a log file. cat() flattens them out. I'd like them formatted as in 'print' but print only writes to stdout. Is there a simple way to achieve this result? Thanks -- View this message in context: http://www.nabble.com/print%28%29-to-file--tp24397445p24397445.html Sent from the R help mailing list archive at Nabble.com.
2009 Aug 04
4
array slice notation?
Suppose I have an n-diml array A and I want to extract the first "row" -- ie all elements A[1, ...] Interactively if I know 'n' I can write A[1,,,,,] with (n-1) commas. How do I do the same more generally, eg in a script? (I can think of doing this by converting A to a vector then extracting the approp elements then reshaping it to an array, but I wonder if there isn't a
2009 Feb 13
3
R Help
Hi, I have a list of numbers (classified as a list) that contains integer(0) empty vectors. How do I convert those integer(0) into NAs? Thanks [[alternative HTML version deleted]]
2006 Jan 13
2
find mean of a list of timeseries
Can someone please give me a clue how to 're'write this so I dont need to use loops. a<-ts(matrix(c(1,1,1,10,10,10,20,20,20),nrow=3),names=c('var1','var2','var3')) b<-ts(matrix(c(2,2,2,11,11,11,21,21,21),nrow=3),names=c('var1','var2','var3'))
2004 Jul 30
2
mirroring in both directions with rsync
When operating in daemon mode, will rsync check to see which file is newer and decide which direction to transfer based on that? Example, We have 2 terminal servers, A and B. I want users to be able to work on either server and have their home directories on both stay in sync. If a user logs into server A and changes files, the server would know to transfer the file from A to B. If they log
2009 Jul 01
2
sorting question
I've asked about custom sorting before and it appears that -- in terms of a user-defined order -- it can only be done either by defining a custom class or using various tricks with "order" Just wondering if anyone has a clever way to order "vintages" of the form 2002, 2003H1, 2003H2, 2004, 2005Q1, 2005Q2, etc some have H1 or H2, some have Q1,Q2,Q3,Q4, some are just plain
2009 Jul 07
3
vectorizing a function
I'm sure I'm missing something obvious but I'm not seeing how to simply "vectorize" a function of two or more variables. Say I have f <- function(x,y) if (x>0) y else -y Now I have vectors x and y of equal length and I'd like to apply f element-wise. I.e. conceptually z <- f(x,y) where x, y, z are vectors of the same length Some magic involving apply?
2009 Jun 23
1
X-window graphics -- preventing window coming to front?
When I do dev.new(), the resulting window comes to the front and grabs the focus. Is there a way to prevent this so I can continue working in other windows while the graphics are being produced? Thanks -- View this message in context: http://www.nabble.com/X-window-graphics----preventing-window-coming-to-front--tp24167763p24167763.html Sent from the R help mailing list archive at Nabble.com.
2010 Apr 20
2
apropos and find
Hello, I'm starting working myself in the use of R, reading M. J. Crawley, The R Book. The problem I do encounter is concerning the commands apropos and find: > apropos(edit) Fehler: is.character(what) is not TRUE > find(edit) Fehler: is.character(what) is not TRUE I get the same error message typing anything else instead of "edit". The command ?edit seems to work well.
2009 Jun 17
2
list of data.frames?
I'm trying to build up a list of data.frames by "appending" one by one. If x,y,z are data.frames, I can do somelist <- list(x, y, z) (or even somelist <- list(x=x, y=y, z=z) to get names) But if I start with somelist <- list(x,y) and now want to go from this to list(x,y,z) I'm stuck. I've tried append(somelist, z) c(somelist, z) list(somelist, z) Each gives
2006 Dec 14
1
A possible improvement to apropos
Hello all, I've had the following apropos alternative in my ~/.Rprofile for some time, and have found it more useful than the current version. Basically, my version ignores case when searching. If others find this useful, perhaps apropos could be suitably patched (and I'd be willing to create such a patch). + seth Here is my version of apropos: APROPOS <- function (what, where =
2017 Aug 12
2
Keep on losing communication: Raspberry Pi, CyberPower PR1500LCD
Everything runs fine for several hours, then communication is lost and nut doesn't reestablish communication on its own. Running sudo upsdrvctl stop then sudo upsdrvctl start reestablishes communication. OS Version: Linux piaware 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux Nut Version: 2.7.2-4 Nut Installation Method: apt Device: CyberPower PR1500LCD Uses ? ? Generic
2006 Dec 22
1
apropos changes in r-devel: intended feature or bug?
The old apropos started with: if (!is.character(what)) what <- as.character(substitute(what)) The new one has: if (character.only) stopifnot(is.character(what)) else what <- as.character(substitute(what)) i.e., the check for is.character(what) is missing. This has the effect that 'what' can no longer be a character string generated by a function call
2003 Oct 24
1
Searching a Table
Is there any way to search a column of a table? I read in a table and I want to create a subset based on the criteria that a certain column (filled with words) has a word which starts with a certain letter. The only method I have seen that searches this way is apropos(), but that doesn't seem to search the location I want. If anyone can make a recommendation I would appreciate it.
2004 Aug 30
2
suggestions motivated by quest for remainders
Some time ago I tried to find out how to compute remainders in R. I now know that it is done with %%, which is documented in help('+'), but before someone told me that I tried: help('remainder'), help.search('remainder'), apropos('remainder') help('modulo'), help.search('modulo'), and apropos('modulo') all of which yielded nothing. I then
2011 Oct 26
1
Re: Keylogger question
micdhack wrote: > My wow account was hacked and since i logged in more from ubuntu than windows i wanted to ask if it is possible a keylogger to be installed through wine and if it could start automatically to monitor the system each time linux starts or each time i start some wine application. > By the way i used antivirus to scan linux and wine directories and nothing was found In my
2007 Apr 11
1
Sort output of apropos
A further improvement to apropos() would be to sort the output. Currently, the output of apropos is in the order found on the search list and this will rarely be useful to the user. All that is needed is a sort(x) at the end of the function. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org
2009 May 18
3
Parsing configuration files
Dear list, Is there any functionality in R that would allow me to parse config files? I have trie ??config and apropos('config') without succes, and also search the R package site. Mvh. Marie [[alternative HTML version deleted]]