Displaying 9 results from an estimated 9 matches for "198000".
Did you mean:
18000
2005 Sep 18
3
as.data.frame segfaults on large lists (PR#8141)
Full_Name: Ulrich Poetter
Version: 2.1.1
OS: i686-pc-linux-gnu FC2
Submission from: (NULL) (134.147.95.187)
as.data.frame() segfaults on lists with very many elements:
> dfn <- rep(list(rep(0,2)),198000)
> test <- as.data.frame.list(dfn)
Process R segmentation fault at Sun Sep 18 17:06:02 2005
2009 Oct 15
3
Solving an equation in R (and using a loop)
...uld also be
appreciated, but this is my main concern right now.)
Here's my code:
f<-function(r){1-exp(-r*b)-(1/2)*(1-exp(-r*x1)+1-exp(-r*x2))}
uniroot(f,c(0,1))$root
r is the unknown. I've plugged in a couple numbers from my data for b, x1,
and x2 such as:
b=5500
x1=0.01
x2=10000
and
b=198000
x1=10
x2=500000
and gotten 0 both times.
Thanks in advance for your help.
--
View this message in context: http://www.nabble.com/Solving-an-equation-in-R-%28and-using-a-loop%29-tp25916187p25916187.html
Sent from the R help mailing list archive at Nabble.com.
2005 Oct 10
1
decreasing performance of for() loop
...Rs,
I'm wondering why the for() loop below runs slower as it progresses.
On a Win XP box, the iterations at the beginning run much faster than
those at the end:
1%, iteration 2000, 10:10:16
2%, iteration 4000, 10:10:17
3%, iteration 6000, 10:10:17
98%, iteration 196000, 10:24:04
99%, iteration 198000, 10:24:24
100%, iteration 200000, 10:24:38
Is there something that can be done about this? Would such a loop run
faster in C/C++/Fortran?
Thank you,
b.
#---sample code
loop.progress <- function(loop,iterations,steps,toprint=NULL)
{
marks <- c(1,floor(iterations/steps)*(1:steps))
if (loop...
2011 May 17
1
CTDB -- manually setting winbind uid with wbinfo
...he UID to SID mapping manually using the
following procedure.
get the SID:
wbinfo -n domain\\<username>
S-1-5-21-1117850145-XXXXXXXX-XXXXXXX-220398 SID_USER (1)
Then set the SID to map to a desired UID rather than the random one chosen
[root at filer01-ph ctdb]# wbinfo
--set-uid-mapping=198000,S-1-5-21-1117850145-XXXXXXXX-XXXXXXX-220398
Could not create or modify uid to sid mapping
[root at filer01-ph ctdb]
I have tried deleting the old mapping beforehand and clearing the cache
[root at filer01-ph ctdb]# wbinfo -i <domain>\\<username>
<username>:*:100000:100002::/home...
2020 Apr 04
0
[PATCH v2 03/17] drm: Nuke mode->vrefresh
...DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
> - .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27,
> },
> + .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
> /* 85 - 1680x720 at 120Hz 64:27 */
> { DRM_MODE("1680x720", DRM_MODE_TYPE_DRIVER, 198000, 1680, 1740,
> 1780, 2000, 0, 720, 725, 730, 825, 0,
> DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
> - .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27,
> },
> + .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
> /* 86 - 2560x1080 at 24H...
2020 Apr 28
0
[PATCH v3 03/16] drm: Nuke mode->vrefresh
...0, 725, 730, 825, 0,
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
- .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
+ .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
/* 85 - 1680x720 at 120Hz 64:27 */
{ DRM_MODE("1680x720", DRM_MODE_TYPE_DRIVER, 198000, 1680, 1740,
1780, 2000, 0, 720, 725, 730, 825, 0,
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
- .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
+ .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
/* 86 - 2560x1080 at 24Hz 64:27 */
{ DRM_MODE("2...
2020 Apr 03
3
[PATCH v2 03/17] drm: Nuke mode->vrefresh
...0, 725, 730, 825, 0,
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
- .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
+ .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
/* 85 - 1680x720 at 120Hz 64:27 */
{ DRM_MODE("1680x720", DRM_MODE_TYPE_DRIVER, 198000, 1680, 1740,
1780, 2000, 0, 720, 725, 730, 825, 0,
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
- .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
+ .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
/* 86 - 2560x1080 at 24Hz 64:27 */
{ DRM_MODE("2...
2020 Feb 19
5
[PATCH 04/12] drm: Nuke mode->vrefresh
...0, 725, 730, 825, 0,
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
- .vrefresh = 100, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
+ .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
/* 85 - 1680x720 at 120Hz 64:27 */
{ DRM_MODE("1680x720", DRM_MODE_TYPE_DRIVER, 198000, 1680, 1740,
1780, 2000, 0, 720, 725, 730, 825, 0,
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
- .vrefresh = 120, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
+ .picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27, },
/* 86 - 2560x1080 at 24Hz 64:27 */
{ DRM_MODE("2...
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame.
For instance
> ddTable <-
data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry"))
I want a dataset that is
Id Name
1 Paul
2 Bob
> unique(ddTable)
Will give me all 4 rows, and
> unique(ddTable$Id)
Will give me c(1,2), but not accompanied by the name column.