similar to: sum of digits or how to slice a number into its digits

Displaying 20 results from an estimated 3000 matches similar to: "sum of digits or how to slice a number into its digits"

2011 Dec 29
2
sorting a data.frame (df) by a vector (which is not contained in the df) - unexpected behaviour of match and factor
Dear R colleagues, consider my data.frame named "df" with 3 columns - being level, prevalence and sensitivity - and 7 rows of data (see dump below). df <- structure(list(level = structure(1:7, .Label = c("0", "1", "10", "100", "1010", "11", "110"), class = "factor"), prevalence = structure(c(4L, 2L, 3L,
2010 Nov 29
1
selecting only corresponding categories from a confusion matrix
Dear R colleagues, as a result of my calculations regarding the inter-observer-variability in bronchoscopy, I get a confusion matrix like the following: 0 1 1001 1010 11 0 609 11 54 36 6 1 1 2 6 0 2 10 14 0 0 8 4 100 4 0 0 0 0 1000 23 7 12 10 5 1001 0 0 4 0 0 1010 4 0 0 3 0 1011 1 0 1 0 2 11
2012 Mar 03
3
percentile of a given value: is there a "reverse" quantile function?
Dear all, I am familiar with obtaining the value corresponding to a chosen probability via the quantile function. Now I am facing the opposite problem I have a value an want to know it's corresponding percentile in the distribution. So is there a function for this as well? Thank you for your support in advance, Felix
2005 Feb 16
4
festival text for weather report
http://www.srh.noaa.gov/fwd/productviewnation.php?pil=OKXZFPOKX&version= 0 can anyone suggest how I could set up asterisk@home to read out allowed the following text when I dial extension 850? 815 PM EST WED FEB 16 2005 .OVERNIGHT...MOSTLY CLEAR. LOWS 30 TO 35. NORTHWEST WINDS 15 TO 20 MPH WITH GUSTS UP TO 30 MPH...DIMINISHING TO 10 TO 15 MPH LATE. .THURSDAY...PARTLY CLOUDY. COOLER
2012 Jan 07
2
colouring a table, data.frame or matrix in an interactive R session
Hi everybody, as I am dealing with complex confusion matrices, I wonder whether there might be a way to colour text/tabular data in R. I.e. imagine highlighting the true positive values or certain classes in a table. I know how to colour text in graphical output as well as how to sweave or odfWeave coloured tables. But is there a way to do it directly in an interactive R session? Of course I
2008 Sep 03
2
GIMP 2.4 on CentOS 5?
Hi, I'm using CentOS 5 on all our desktops here (work & home), and I'm quite happy with it. There's one detail I'd like to change. GIMP comes in version 2.2. There have been some changes in version 2.4, and it's also been around for quite some time. There are quite some functions in 2.4 that I'd like to use. As far as I understand, building GIMP 2.4 would involve
2011 Aug 16
1
how to sort the levels of a table
Dear colleagues, I have really heavy problems in sorting the results of a table according to certain features of the levels in the table. Prerequisites: It all starts with a fairly simple data set, which stores observations of 21 observers (horizontally from 1 to 21; 21 is reference/goldstandard) who diagnosed 42 videos (vertically from 1 to 42). See dump of R-object "input" below in
2011 Sep 13
2
How to use a variable after $ ($x) for subscripting a list, How to source from a character object (source(x))
Dear R colleagues, as result of a function a huge list is generated. From this result list I'd like to extract information. Think of the list i.e. as an object named "listResult" with the following form: [[a]] [1] [2] [3] [4] [5] [[b]] [1] [2] [3] [4] [5] [[c]] [1] [2] [3] [4] [5] where levels=c(a,b,c) I'd like to extract a data.frame like a [2] b [2] c [2] What I
2004 Jan 11
24
More words for Allison
Here's the latest batch of words to get shipped out to Allison Smith. Please submit reasonably small changes to me by tomorrow 10:00 AM Eastern time, and I'll add them. As usual, donations to what will be a ~$110 USD expense would be appreciated, as I am paying for this round out of my pocket. Please send to paypal address "jtodd@loligo.com". I did not include all
2009 Jan 23
2
can't load rJava in R 2.8.1 on Windows XP
Dear community, unfortunately I did not manage load the rJava package receiving the following error-message: > library("rJava") Error in inDL(x, as.logical(local), as.logical(now), ...) : kann shared library 'C:/Programme/R/2.8.1/library/rJava/libs/rJava.dll' nicht laden: LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Error : .onLoad in
2009 Jan 23
2
can't load rJava in R 2.8.1 on Windows XP
Dear community, unfortunately I did not manage load the rJava package receiving the following error-message: > library("rJava") Error in inDL(x, as.logical(local), as.logical(now), ...) : kann shared library 'C:/Programme/R/2.8.1/library/rJava/libs/rJava.dll' nicht laden: LoadLibrary failure: Das angegebene Modul wurde nicht gefunden. Error : .onLoad in
2012 Mar 03
2
contour for plotting confidence interval on scatter plot of bivariate normal distribution
Dear all, I created a bivariate normal distribution: set.seed(138813) n<-100 x<-rnorm(n); y<-rnorm(n) and plotted a scatterplot of it: plot(x,y) Now I'd like to add the 2D-standard deviation. I found a thread regarding plotting arbitrary confidence boundaries from Pascal H?nggi http://www.mail-archive.com/r-help at r-project.org/msg24013.html which cites the even older thread
2017 Jan 11
2
16-bit bytes support
> 16-bit byte was a major pain back in the day, and we never fixed all > known failures. In part, it's because C standard really wants 8-bit chars. So no real solution? > Btw, why is DCPU16 still a thing? :) https://github.com/techcompliant/. It's a separate team not related to Mojang which took the idea. They are on alpha now. Also because
2010 Dec 15
1
pmnorm: probabilites don't sum up to 1
Dear list member, I struggle with the problem, why the probabilities of choosing one of three mutually exclusive alternatives don?t sum up to 1! Let?s assume we have three alternatives X, Y, and Z. Let?s further assume we know their respective utilities: uX, uY, uZ. I?m interested in calculating the probability of choosing X, Y, and Z. Since I assume that the alternatives are mutually
2008 Sep 01
3
convenient way to calculate specificity, sensitivity and accuracy from raw data
Dear R-colleagues, this is a question from a R-newbie medical doctor: I am evaluating data on inter-observer-reliability in endoscopy. 20 medical doctors judged 42 videos filling out a multiple choice survey for each video. The overall-data is organized in a classical way: observations (items from the multiple choice survey) as columns, each case (identified by the two columns "number of
2008 Sep 06
3
how to address last and all but last column in dataframe
Dear R-colleagues, another question from a newbie: I am creating a lot of simple pivot-charts from my raw data using the reshape-package. In these charts we have medical doctors judging videos in the columns and the videos they judge in the rows. Simple example of chart/data.frame "input" with two categories 1/0: video 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 1 0 0
2008 Aug 22
3
simple generation of artificial data with defined features
Dear R-colleagues, I am quite a newbie to R fighting my stupidity to solve a probably quite simple problem of generating artificial data with defined features. I am conducting a study of inter-observer-agreement in child-bronchoscopy. One of the most important measures is Kappa according to Fleiss, which is very comfortable available in R through the irr-package. Unfortunately medical doctors
2001 May 24
1
tframe question - latest.start
I'm having some trouble figuring out latest.start in the tframe package. The results seem a bit cloudy. Sample session: > library(ts) > library(tframe) Loading required package: syskern > t1<-ts(c(1,2,3,4,5),start=1) > t2<-ts(c(1,2,3,4,5),start=2) > earliest.start(tbind(t1,t2)) [1] 1 1 > earliest.start(tbind(t2,t1)) [1] 1 1 > latest.start(tbind(t2,t1)) [1] 1 1
2006 Nov 21
6
Spec Naming (was: Rspec Brown Bag)
Thanks for posting your specdoc, Brandon -- they''re a great example. On 11/21/06, Brandon Keepers <bkeepers at gmail.com> wrote: > > A user purchasing items > - should create an order > - should add to the user''s orders > - should create line items > - should set line item amount to the item''s price > - should set line item amount to 0 if
2005 Mar 17
6
About the weather..
Ok, I've been away from the list for sometime now and feel as though I'm going to ask something that's been asked many times before, yet I find nothing in the wiki, so here goes: I notice that allison has done recordings for weather forecasts, yet I find no agi's that parse forecasts and use this recordings to piece together the forecast. I find plenty of weather agi's, but