similar to: I think not so hard question

Displaying 20 results from an estimated 11000 matches similar to: "I think not so hard question"

2006 Jan 12
1
I think simple R question
I have a vector x with #'s ( 1 or -1 in them ) in it and I want to "mark" a new vector with the sign of the value of the a streak of H where H = some number ( at the next spot in the vector ) So, say H was equal to 3 and I had a vector of [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 1 -1 1 1 1 -1 1 1 -1 -1 then, I would want a function to
2006 Jan 11
2
a series of 1's and -1's
Does anyone know of a simple test in any R package that given a series of negative ones and positive ones ( no other values are possible in the series ) returns a test of whether the series is random or not. ( a test at each point would be good but I can use the apply function to implement that ) ? thanks.
2009 Oct 01
1
Help me replace a for loop with an "apply" function
...if that is possible My task is to find the longest streak of continuous days a user participated in a game. Instead of writing an sql function, I chose to use the R's rle function, to get the longest streaks and then update my db table with the results. The (attached) dataframe is something like this: day user_id 2008/11/01 2001 2008/11/01 2002 2008/11/01 2003
2006 Jan 09
6
R newbie example code question
Sometimes I print out a package and read about it and there are sometimes nice examples that I would like to run myself. Is there a way to bring them into R from the package or are they only meant to be typed in manually ? If manual is the only way, that's fine. I was just checking whether there was a quicker way. Thanks. Mark
2006 Jan 04
1
R newbie configuration
I think I did enough reading on my Own about startup ( part of the morning And most of this afternoon ) to not feel uncomfortable asking for confirmation of my understanding of this startup stuff. Obviously, the startup process is more complicated Than below but, for my R newbie purposes, It seems like I can think of the startup process as follows : Suppose my home directory =
2006 Jan 03
5
newbie R question
I'm sorry to bother everyone with a stupid question but, when I am at an R prompt in Windows, is there a way to see what packages you already have installed from the R site so that you can just do library(name_of_package) and it will work. I've looked at help etc but I can't find a command like this. Maybe there isn't one which is fine.
2006 Jan 05
0
.Rprofile files (was R newbie configuration)
Thanks a lot. setHook is Currently not in my knowledge set But it's great to save these Thing so I can look them up When I feel more comfortable. Just to add to that Stata versus R discussion : I believe, anyone who uses any other package than R, is probably missing out in the long run. It's truly unbelievable what has been done here. I feel like I fell asleep for 5 years ( by not using
2005 Dec 29
1
R and read.irts
I thought r-help let you attach asci files but I don't think it does now so below is a sample of my data set. Thanks again. 09:40:08.5238,67.00,33 09:40:09.1968,67.00,2 09:40:09.7945,67.00,2 09:40:09.7975,67.00,2 09:40:09.8318,66.99,-3 09:40:17.6335,66.95,3 09:41:09.3393,66.95,6 09:41:11.1482,66.95,-1 09:42:07.4552,66.90,-5 09:42:12.5823,66.85,-5 09:42:14.4329,66.80,-2
2004 Jan 22
4
customising installed libraries
hello I am returning to some libraries that I had previously customised by amongst other things adding additional functions. I had simply typed these new functions into the file in library/R/thelibrary. These however do not seem to be loaded now as they previously were under older versions of R. What's changed and what do i need to do? Thanks Stephen
2005 Mar 11
2
Calculating lengths of runs of 0 or 1 sequences in meteorological data
Dear List Members, I need some help about programming in S language. My problem is as follows: I have meteorological data (about rainfall measurement each day from 1989-2002), say like http://www.angelfire.com/ab5/get5/data.rainfall.txt or http://www.angelfire.com/ab5/get5/R.rainfall.txt in a sequence of 0(denoting dry day)'s and 1(denoting wet day)'s. I want to construct a frequency
2001 Feb 23
2
Trouble with Wine-20010216
I've been using various versions of Wine for a year or so, and up to 20001026 I've had no problems. However, I just tried building 20010216 and my lucky streak came to an end. Now when I try to run anything, I get the following error messages: err:module:BUILTIN32_dlopen failed to load .so lib for builtin user32.dll: /usr/local/lib/libkernel32.so: undefined symbol:
2012 Nov 02
2
Determine longest run of number
Does anybody know a way to determine the longest run of a number in a vector of numbers? For example if I have the following numbers: 0 0 1 1 1 1 0 1 1 0 0 0 1 1; how can I determine that the longest run of 1's = 4 and longest run of 0's = 3? Thanks, Mark
2007 Jun 21
4
FW: Suse RPM installation problem
Hello I am trying to install the R RPM for Suse 10.0 on an x86_64 PC. However I am failing a dependency for "libpng12.so.0" straight away PC5-140:/home/rmgzshd # rpm -i R-base-2.5.0-2.1.x86_64.rpm error: Failed dependencies: libpng12.so.0(PNG12_0)(64bit) is needed by R-base-2.5.0-2.1.x86_64 I do seem to have this file PC5-140:/home/rmgzshd # whereis libpng12.so.0
2007 Oct 09
3
identify number of sequences from a vector
? stato filtrato un testo allegato il cui set di caratteri non era indicato... Nome: non disponibile Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071009/365764b4/attachment.pl
2007 May 23
2
Fonts do not display properly on Red Hat
Hi I'm using R version 2.3.1 on Red Hat Enterprise Server 3. When I run a simple: plot(1:10,1:10) The plot comes out great, but the fonts are displayed wrongly: http://coxpress.sourceforge.net/test.jpg I realise this is probably not an R problem per se, but before I go messing about with my fonts, can someone tell me which fonts R (or X11) is trying to display, where they might be
2007 Dec 17
2
[LLVMdev] RFC: GLIBCXX_DEBUG ScheduleDAG Patch
Attached is a patch to fix a GLIBCXX_DEBUG error in ScheduleDAGRRList. The problem is that calls to CapturePred may reprioritize elements in the priority queue, violating streak weak ordering requirements. To fix this, I introduced a reference wrapper for containers to obtain access to the SUnitVec used by std::priority_queue. When CapturePred runs, it calls updateNode which does a
2006 Jan 17
2
Installing a package yet it will not work.
I want R to read my Microsoft Access database or maybe even a Sybase database. I installed RODBC or at least thought I did. Then I issued the following command: library(RODBC) And got Error in lazyLoadDBfetch(key, datafile, compressed, envhook) : ReadItem: unknown type 241 In addition: Warning message: package 'RODBC' was built under R version 2.3.0 Error: package/namespace
2011 Feb 02
4
Blasphemous? any support for a REPO of current edition BIND, et al (e.g., BZ561299)?
Hello CentOS Community Members, What is RH's be-all end-all justification for staying with an ancient code base for such important programs as BIND et al? A similar problem (to BZ561299) was first reported five (5) years ago on the isc.org mailing list. Is there any support among the CentOS community for a REPO of current vintage for such important functions as BIND et al? That question is
2005 Jun 24
1
r programming help II
Dear List, Suppose we have a variable K.JUN defined as (with 1=wet, 0=dry): K.JUN1984 = c(1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) K.JUN1985 = c(0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1) K.JUN1986 = c(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1)
2009 Nov 02
5
Optimizar código
Hola lista, tengo una base de datos muy grande de un datalogger. Consiste en un vector con 0's y 1's, y tengo que ver cuando hay 600 o más unos seguidos. Se me ocurrió hacerlo con un loop for. Pero tarda demasiado. También intente usar which para que seleccione solo los 1 para empezar a sumar pero no hay gran diferencia. A alguien se le ocurre alguna solución para hacerlo más rápido? Acá