Displaying 20 results from an estimated 20000 matches similar to: "writing function with ,... )"
2006 Nov 29
4
String question
Hi to all
I would to determinate whether bits is a binary code and I would to find
out the which bit is set to 1
bits <-"00110110"
I found to detect whether there are only numbers
all.digits(bits)
but is there any function to detect whether there are only 0 and 1 in
the string
And how could I get the f.e the third "bit" from the right hand side
With regards Carmen
2006 Nov 08
10
axis command and excel time format
Hi to all,
I have some problems to get the times-scale to the x-axis the times are
coming from an excel sheet f. e
[1] "0:01:00" "0:02:00" "0:03:00" "0:04:00" "0:05:00" "0:06:00" "0:07:00"
[8] "0:08:00" "0:09:00" "0:10:00" "0:11:00" "0:12:00" "0:13:00"
2006 Dec 15
2
ks.test "greater" and "less"
Hello r-group
I have a question to the ks.test.
I would expect different values for less and greater between data1 and
data2.
Does anybody could explain my point of misunderstanding the function?
data1<-c(8,12,43,70)
data2<- c(70,43,12,8)
ks.test(data1,"pnorm")
ks.test(data1,"pnorm",alternative ="less") #expected < 0.001
2007 Jun 08
2
pnorm how to decide lower-tail true or false
Hi to all,
maybe the last question was not clear enough.
I did not found any hints how to decide whether it should use lower.tail
or not.
As it is an extra R-feature ( written in
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/66250.html )
I do not find anything about it in any statistical books of me.
Regards Carmen
2007 Jun 06
6
p-value from GEE
Hi to all,
I found in the R-help archive how to calculate the p-value for a gee result:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/74150.html
but there are two questions (I am afraid they are basic questions ...)
1. why is the result multiplicated with 2
2. how could I decide between lower.tail =TRUE and FALSE:
example:
2008 Jul 05
3
Editing the "..." argument
Dear all,
I'd like tweaking the ... arguments that one user can pass in my
function for fitting a model. More precisely, my objective function is
(really) problematic to optimize using the "optim" function.
Consequently, I'd like to add in the "control" argument of the latter
function a "ndeps = rep(something, #par)" and/or "parscale =
2002 Dec 17
3
Changing "..." inside a function: impossible? desirable?
This is was something like a request for your comments, thoughts
on the topic...
Many of you will know that the "..." (aka \dots) argument is
very useful for passing ``further graphical parameters'',
but can be a pain when itself is passed to too many plotting
functions inside your own function.
An artificial example being
myplot <- function(x,y, ...) {
plot(0:1, 0:1,
2010 Oct 11
2
dot plot by group
Hi all,
I have the folloing data table
%%%%%%%%%%%%%%%%%%
Type BATCH RESPONSE
SHORT A 22
SHORT A 3
SHORT A 16
SHORT A 14
SHORT A 8
SHORT A 27
SHORT A 11
SHORT A 17
SHORT B 12
SHORT B 17
SHORT B 11
SHORT B 10
SHORT B 16
SHORT B 18
SHORT B 15
SHORT B 13
SHORT B 9
SHORT B 20
SHORT C 4
SHORT C 16
SHORT C 32
SHORT C 11
SHORT C 9
SHORT C 25
SHORT C 27
SHORT C 12
SHORT C 26
SHORT C 7
SHORT C 14
LONG A
2010 Dec 14
2
How to left or right truncate a character string?
Hi R-helpers,
I have a character string, for example:
"lm(y ~ X2 + X3 + X4)"
from which I would like to strip off the leading and trailing
quotation marks resulting in this:
lm(y ~ X2 + X3 + X4)
I have tried using gsub() but I can't figure out how to specify the
quotation mark using a regular expression.
Alternatively, I would like a function that lets me delete the leading
2012 Apr 12
1
Help with vectorization
Hi every one. I have a exponential function (3 fitting parameters) that I
would like to use to produce data (6 series) without having to use a loop.
Here
wl = seq(300,500,1)
k1 = c(1.2e-6, 4.9e-6, 9.6e-6, 2.7e-10, 6.7e-8, 7.44e-6)
k2 = c(726, 352, 128, 5232, 1538, 128)
k3 = c(-176, -224, -257, 88.7, -111, -256)
stations = c('R5d', 'R5a', 'R9', '108',
2003 Jul 31
1
smtp over ssh probs
before I start, two notes. I alredy sent this mail to the other
mailing list, but no answer has came back. also, I'm not subscribed to
this list, so please cc me the answers. now, to business.
I have a problem but I don't know exactly what. Or why, better. The
scheme is like this: I don't have a direct connection to the inet,
except for ssh to certain range of ip's at a
2008 Sep 23
4
gsub difficulty
Greetings R-ians:
I know what doesn?t work but I don?t know why, nor how to remedy things.
I have a character string containing "." which I want to replace with " "
gsub(".", " ", file.label) replaces the every character with a blank.
However gsub(".xls", " ", file.label) replaces ".xls" with a blank as
expected.
It appears
2003 Feb 17
2
returning argument names
Dear r-list folks,
I have a problem which has been bugging me for a while now and I was hoping
someone out there might be able to help.
If I have a user-defined function with an indeterminate number of
arguments, using the well-known "..." construct, how can I get the
function to return the names of the items which were the arguments of the
function as part of the function's
2006 Jun 23
5
create session only for logged-in
i was wondering how a blog db has grown by about 15 mb in a week or two. it turns out its the sessions table..
so ive tried this:
class ApplicationController..
session :off
end
class AccountController
session :only, :login
end
and now, its impossible to login, and nothing ever appears in the session table. is this the right approach? i dont want to weed out the sessions with cron, i just
2011 May 29
1
Oddity: I seem to have a variable in a dataframe that doesn't show in colnames() - can anyone advise?
I may be being dopey, I surely am, but I'm baffled by this. I've been
working, on and off for a few days in R version 2.13.0 (2011-04-13)
i386-pc-mingw32/i386 (32-bit) working it through ESS.
I've got a dataframe created a couple of days back, during the session:
> dim(AllDat)
[1] 27270 94
I came back this morning and misremembered my variables and thought I
had a variable
2011 Feb 09
1
add mean and sd to dotplot in each panel using lattice
Hi,
I have a data frame like this:
ScoreDoseSex
2.81Dose1M
1.81Dose1M
1.22Dose1M
0.81Dose1M
0.49Dose1M
0.22Dose1M
0.00Dose1M
-0.19Dose1M
-0.17Dose1F
-0.32Dose1F
-0.46Dose1F
-0.58Dose1F
-0.70Dose1F
-0.81Dose1F
-0.91Dose1F
-1.00Dose1F
-1.77Dose2M
-1.85Dose2M
-1.93Dose2M
-2.00Dose2M
-2.07Dose2M
-2.14Dose2M
-2.20Dose2M
-2.26Dose2M
-2.32Dose2F
-2.38Dose2F
-2.17Dose2F
-2.49Dose2F
-2.54Dose2F
2011 Mar 14
3
FTP accounts
Hello,
I have setup a centos server running 5.5 and I have a problem with the FTP
settings.
Currently I have two FTP accounts based on that server, they lead to:
/home/bella
/home/carmen
Currently the FPT accounts starts in the home directory when they are logged
in. But they are able to see all directories on the server. What can I do to
make sure they cant come out of there home directory?
2003 Sep 23
1
least squares regression line
I can't seem to find the command to find the least squares regression line
for my bivariate data set. Can you please help? ~Carmen
2006 Jul 27
1
replace values in a distance matrix
Hi to everybody!
I´m just a beginner in R, and I´m trying to replace values in a distance matrix with a concret condition: replace all values (elements) lower than 4.5 with value=18.
I´ve tried this, but it doesn´t work...
Dxy would be my 117 x 117 euclidean distance matrix
M18 and M4.5 would be 117 x 117 matrices:
M18<-matrix(rep(18,13689),nrow=117)
2005 Feb 21
1
error in using usrmgr.exe
Hello:
I have set up samba PDC using samba 3.0.11. When I use
the usrmgr.exe tool on NT4 machine to add user to the
domain, it prompts and says: "The following error
occurred changeing properties of the user mary: fail
find the group" (The error msg actually appears as
Chinese in my computer, I just translate the error
message).
Then I check with the samba log file and it said:
group