similar to: Newbie

Displaying 20 results from an estimated 10000 matches similar to: "Newbie"

2010 Apr 09
6
function rep
Hi, I've got the following code: p <- 0.34 pb <- p*100 pr <- (1-p)*100 A <- rep(0,pb) # a vector with 34 "zeros" B <- rep(1,pr) # a vector with 66 "ones" Now if I type length(A), R answer correctly 34 but if I type length(B), R answer 65 instead of 66. I don't understand why it happens. Can anyone help me? Thanks in advance. Paolo
2010 Apr 08
3
use read.table for a partial reading
Hi everyone, I've got a matrix data with 20 variables (V1, V2, V3, ...) and 215 rows (observations). I'm interested to read only the first and second variables using "read.table" function. How can I do? Thanks in advance. Paolo.
2002 Jul 16
3
Device 2: graphic window
Does anyone know how I can choose the background color of the graphic window? Furthermore, how can I open more than a graphic-window in the same work session? (My platform is W2000 on PC) Thank in advance. Paolo -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info",
2002 Jul 10
3
new user
Hi, I'm a beginner of R. I find it absoluty fantastic, flexible and very extensible. For the moment only a curiosity.. Why the name R? (are they perhaps the initials of Robert Gentleman and Ross Ihaka?, or is the name correlated with S language?) Sorry for my poor question but I am very curious Thank in advance Paolo C.
2003 Oct 21
3
BEGINNER: please help me to write my VERY simple function
Hi. 1)I have two variables: call a<-c(e.g.0,3,6,7...) b<-c(e.g.6,8,3,4...) I want to create a third vector z wich contain the pairs values z<-c(0,6,3,8,6,3,7,4....and so on for each pairs (a,b)). There is a specific function? How can i write my own function? 2)When i try to write a function and then i save it like "function.R" file, i try to
2010 Apr 09
1
terminating function
Hi everyone, I 'm building a function, in the middle it controls the sign of a variable x. If x < 0 the function write a warning (Error: negative value!). At this point I want the function stops without execute the remaining code. How can I do to terminate the function before your ending? Thanks in advance. Paolo
2013 Jul 25
2
[PATCH V2 4/4] x86: correctly detect hypervisor
We try to handle the hypervisor compatibility mode by detecting hypervisor through a specific order. This is not robust, since hypervisors may implement each others features. This patch tries to handle this situation by always choosing the last one in the CPUID leaves. This is done by letting .detect() returns a priority instead of true/false and just re-using the CPUID leaf where the signature
2013 Jul 25
2
[PATCH V2 4/4] x86: correctly detect hypervisor
We try to handle the hypervisor compatibility mode by detecting hypervisor through a specific order. This is not robust, since hypervisors may implement each others features. This patch tries to handle this situation by always choosing the last one in the CPUID leaves. This is done by letting .detect() returns a priority instead of true/false and just re-using the CPUID leaf where the signature
2013 Jul 25
2
[PATCH V2 4/4] x86: correctly detect hypervisor
We try to handle the hypervisor compatibility mode by detecting hypervisor through a specific order. This is not robust, since hypervisors may implement each others features. This patch tries to handle this situation by always choosing the last one in the CPUID leaves. This is done by letting .detect() returns a priority instead of true/false and just re-using the CPUID leaf where the signature
2003 Aug 01
1
(no subject)
> Hello, > My question is very simple. I have installed R from the internet and I want to use it to analyse my data set. It seems that R is not able to make the > connection when I use the read.table () function since it probably doesn't know where is the required file. Where am I suppose to save my file ? > Thanks > > Marc-Antoine Vaillant > Actuarial Analyst > Les
2004 Aug 06
6
No audio with slackware for live station
Hy, I've just installed the latest release of icecast2 and ices from CVS. I have a linux Slackware 9.0 with the default packages. After install of ices and icecast & relative libraries (with no errors), I've started the icecast server. When starts ices, this is the debug: --- INFO ices-core/main ices started... INFO input-oss/oss_open_module Opened audio device /dev/dsp at 2
2013 Jan 09
4
Basic loop programming
Hi all, newbie question: I am trying to set up a very simple loop without succeeding. Let's say I have monthly observation of two variables for a year - Sales_2012_01, Sales_2012_02, Sales_2012_03, .... (total sales for jan 2012,feb 2012, etc.) - Customers_2012_01, Customers_2012_02, .... (total number of customers for jan 2012, etc.) and I want to create new monthly variables in
2007 Jun 12
4
write some custom values to CDR table
Hi, I write the CDR of my Asterisk 1.2.17 server in MySQL database using cdr_addon_mysql.so. Now I'm trying to write some custom values to userfield column by the SET(CDR(USERFILED)=SOME_TEXT) sintax, but nothing gets writeen in MySQL cdr table!! Why? I'm I skeeping something or what? Taking a look at the URL:
2006 Nov 09
1
optimize function with integral form ?
Hi all, Does anybody have the experience of using optim to estimate variables with integral forms? here the code: trun.mean<- function(x) # t is the threshold { mu=x[1]; sigma=x[2]; t=x[3]; f <- function(x) (1/(sigma*sqrt(2*pi)))*exp(-(x-mu)^2/(2*sigma^2)); pdf.fun <- function(x) x*f(x); integrate(f,thre,upper=Inf)$value/integrate(pdf.fun,thre,upper=Inf)$value ; } when I
2006 Oct 13
2
loop, pipe connection, output objects
Hi all, I have the following -newbye- problem. Inside R, I am trying to process a file and creating from it many files. The file is organized in different columns, the second containing a code. I want to create as output objects, which contain only entries in a certain code range, and whose name contain the code itself. Here is my attempt indice <- (201:399) for(i in indice){ data.i <-
2009 Jan 04
3
Newbie question
Hi: I'm loading in students test scores with: > abntest <- read.table("scores.txt") if I type: >abntest I get ALL the values. I want to be able to filter it by various things such as: if( abntesr > 90) Print abntest; and other logical operators. I'm sure this is simple for someone experienced. Thanks, Gregg Allen
2012 Dec 05
3
enable HA on xcp 1.6
Hi all, today i tried to enable HA on xcp 1.6 but when i enable it through xencenter I received the following error in xensource.log: Dec 5 17:56:26 xcp1 xapi: [ info|xcp1|490661|Async.pool.enable_ha R:9119ce88ffcb|xapi_ha] Using statefile: /etc/xensource/static-vdis/0/disk Dec 5 17:56:26 xcp1 xapi: [debug|xcp1|490661|Async.pool.enable_ha R:9119ce88ffcb|xapi_ha]
2010 Jun 16
2
error message stops "for" command
Hello all, I am using a for statement to run a loop in R but I get an error message and the loop stops. I need that the loop continues til the end. I know I can use the NEXT command but I don“t know how the sintax woul be for this particular situation. Any suggestions? Thanks, Diana Buitrago [[alternative HTML version deleted]]
2004 Feb 23
2
(2) Questions
Hi Fellows from R-Help List! My questions are basic since i an new with R. I am very acquainted with Matlab & Gauss (the compentence, I guess). Anyhow, (1) I am trying to get R execute comands made or built as text, so that one can feed a particular option with many variations coming from a text file. Is this possible with the free version? For instance, there exists the eval comand in
2007 Oct 28
3
tc filter question
Dear all, I have big question in my mind about "tc filter" sintax. If I give "tc -s -d filter sh dev eth0" command, then the output is like below : filter parent 1: protocol ip pref 1 u32 filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:2 (rule hit 21553629 success 37907)