Displaying 20 results from an estimated 7000 matches similar to: "Simple if else statement problem"
2009 Nov 13
4
Change working directory
Hello, I am using setwd() to change the working directory but I have to enter
it everytime I open R, is there a way to set this permanently as a working
directory? Thanx =^D
--
View this message in context: http://old.nabble.com/Change-working-directory-tp26337486p26337486.html
Sent from the R help mailing list archive at Nabble.com.
2009 Nov 16
3
Error on reading an excel file
Hello everybody, here is the code I use to read an excel file containing two
rows, one of date, the other of prices:
library(RODBC)
z <- odbcConnectExcel("SPX_HistoricalData.xls")
datas <- sqlFetch(z,"Sheet1")
close(z)
It works pretty well but the only thing is that the datas stop at row 7530
and I don?t know why datas is a data frame that contains 7531 rows with the
2009 Nov 18
1
Creating an excel file and manipulating it from R
Hello everybody, I?ve been looking for a function that would create an excel
file in my working directory where I would write my dataframe but I only
found the functions to write or read in an existing file that you gave me on
my former post or on some websites. I can?t find either functions to
manipulate those datas: for example, I would like some lines to be red or
green according to their
2009 Nov 19
1
Problem with sqlSave
Hello, the sqlSave function is used in order to write a dataframe on excel.
This function creates worksheets using the attribute tablename and writes
the data.frame in it. What I want to do is to create this data.frame but
being able in case this worksheet already exists to delete the former datas
and write the new ones in it. I used the safer and append attributes. When
you set safer to false,
2009 Nov 16
5
Writing a data frame in an excel file
Hello, I am having trouble by using the write.table function to write a data
frame of 4 columns and 7530 rows. I don?t know if I should just use a
sep="\n" and change the .xls file into a .csv file. Thanks in advance
-----
Anna Lippel
new in R so be careful I should be asking a loooooooot of questions!:teeth:
--
View this message in context:
2009 Oct 03
3
else if statement error
Hello,
I am doing a simple if else statement in R. But it always comes out error
such as 'unexpected error'
There are two variables. ini and b. when ini=1, a=3; when ini>1 and b>2,
a=5; all other situations, a=6. I don't know where it is wrong.
Here is my code
ini=3
b=4
if (ini==1) {
a=3
}
else if (ini>1 and b>2 ) {
a=5
}
else {a=6}
Thanks a
2012 Jan 22
2
if/else statement without curly brackets gives a problem
Hello,
This example seems strange to me:
> if (2 > 3) print('Yes'); else print('No')
Error: unexpected 'else' in " else"
> {if (2 > 3) print('Yes'); else print('No')}
Error: unexpected 'else' in "{if (2 > 3) print('Yes'); else"
> {
+ if (2 > 3) print('no')
+ else print('yes')
+ }
2009 Nov 20
2
Problem at adding lines on a graphics with lines() function
Hello, I am trying to plot a graphic with many lines with the following
command:
plot(datas[1:n,1],datas[1:n,2],type="l",main="SP500 Prices and Moving
Averages",xlab="Date",ylab="Prices",col="black")
lines(datas[1:n,1],datas[1:n,3],type="l",col="green",lty="solid")
But I just see the first curve. I have tried it on
2008 Jun 16
3
Error when make linux-2.6-xenU-build
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `vmcoreinfo_show'':
/usr/src/linux-2.6.18-xen.hg/drivers/xen/core/xen_sysfs.c:340: undefined
reference to `vmcoreinfo_size_xen''
/usr/src/linux-2.6.18-xen.hg/drivers/xen/core/xen_sysfs.c:340: undefined
reference to `paddr_vmcoreinfo_xen''
make[4]: ** [.tmp_vmlinux1]
2024 Aug 05
1
An error message with the command fm<-1m (Version 4.4.1. p. 80, An introduction to R)
Dear all,
I am introducing in R and I had a problem in the beginning. Please, you can
see an error message below: (Maybe I am in error. If so, sorry for that).
Thank You so much!
[1] "R"
> x<-rnorm(50)
> y<-rnorm(x)
> plot(x,y)
> ls()
[1] "x" "y"
> rm(x,y)
> x<-1:20 Make x=(1,2,...,20).
Erro: unexpected symbol em "x<-1:20
2019 Jul 23
2
Error after upgrade NT_STATUS_INTERNAL_DB_CORRUPTION
Hi
Thanks for answers.
I have 3 Dcs Samba 4 in version 4.8.3.
if try join new DC with same verions(4.8.3) i have erro
WERR_DNS_ERROR_RCODE_NAME_ERROR
If try join with samba version 4.7.X i have same erro
WERR_DNS_ERROR_RCODE_NAME_ERROR
I was only able to join the domain with version 4.6.X then I performed
the upgrade to 4.8.3.
I can upgrade samba 4.8.3 to 4.10.6 ? and why a i have erro
2004 Oct 19
1
Cross compiling in R-2.0.0
Hello,
When compiling R-2.0.0 for cross-compiling, I get the following error
when calling 'make R'
---------- Making package base ------------
adding build stamp to DESCRIPTION
/bin/sh: line 1: --vanilla: command not found
make[5]: *** [frontmatter] Erro 127
make[4]: *** [all] Erro 2
make[3]: *** [pkg-base] Erro 2
make[2]: *** [rpackage] Erro 2
make[1]: *** [all] Erro 2
make[1]:
2024 Aug 06
1
An error message with the command fm<-1m (Version 4.4.1. p. 80, An introduction to R)
The function is lm(), not 1m().
lm stands for "linear model" (the first letter of each word)
On Tue, Aug 6, 2024 at 11:22?AM Rosana Curzel <rcurzel at gmail.com> wrote:
> Dear all,
>
> I am introducing in R and I had a problem in the beginning. Please, you can
> see an error message below: (Maybe I am in error. If so, sorry for that).
> Thank You so much!
>
2018 May 16
3
No RID Set found for this server
Hi!
I have two Dcs(samba 4.7.7 compilated running in ubuntu 14.04).
I add one more DC:
1° - Compilated Samba 4 .6.15(because join with samba 4.7.7 has erro)
2° - Upgrade for samba 4.7.7
3° - Join OK
In logs i see on erro:
May 16 20:20:11 dc-linux samba[3530]:
../source4/rpc_server/drsuapi/updaterefs.c:374: Refusing
DsReplicaUpdateRefs for sid
2012 Mar 15
6
Erro na página
Nunca tive contato antes com Ruby on Rails. Temos um servidor aqui no
serviço que foi configurado para receber aplicações Ruby. Na máquina
local, o site estava funcionando perfeitamente. Agora existe este
erro: http://planarias.each.usp.br/. Alguém já teve alguma experiência
com esse tipo de erro e poderia me ajudar?
--
You received this message because you are subscribed to the Google Groups
2018 May 20
1
Erro Join new DC
HI!!
For information only:
In my tests:
Samba 4 version 7.X or 8.x
Dont join in same version or after, only necessary join with versio 6.X,
and after upgrade..
Exemple:
Samba 4 7.7 DC:
New
Join new DC with samba 4 6.X -> OK
New
Join new DC with samba 4 7.X -> Erro
New
Join new DC with samba 4 8.X -> Erro
Samba 4 8.X DC:
New
Join new DC with samba 4 6.X -> OK
New
Join new
2006 Jul 08
1
KhmaladzeTest
Hello. I am a beginer in R and I can not implement the KhmaladzeTest in the following command. Please help me!!!!!!!!!!!
PD: I attach thw results and the messages of the R program
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0
R es un software libre y viene sin GARANTIA ALGUNA.
Usted puede redistribuirlo bajo ciertas
2018 Mar 19
2
Fwd: Re: Erro Upgrade Samba 4.6.3 to 4.8
On Mon, 2018-03-19 at 15:57 -0300, Carlos wrote:
> Hi,
>
> I executed process, but erro:
>
> /opt/samba-4.8.0/source4/scripting/bin# ./sambaundoguididx
> Traceback (most recent call last):
> File "./sambaundoguididx", line 54, in <module>
> samdb.modify(modmsg)
> _ldb.LdbError: (32, 'ldb_wait: No such object (32)')
> A transaction is
2005 May 16
1
help for dual ineternet access on Mandrake 10.1, MASQUERADE: Route sent us somewhere else
Hi all,
I have read and done the LARTC HOW-to and almost everything work''s
execpt from the inside network. When load balancing over the two access
it only work on the linux router/nat machine
1) I am running stock mandrake kernel 2.6.8.1-12mdk and using stock
shorewall config 2.0.8
2) I have two internet link and two internals link. Load balance setup
work for the linux router/nat
2019 Jul 23
2
Error after upgrade NT_STATUS_INTERNAL_DB_CORRUPTION
Hi!
I am running samba 4.6.16 in Ubuntu 18.04 all ok, after ugrade to Samba
4.10.6, in running test
smbclient //localhost/netlogon -UAdministrator -c 'ls'
show me erro:
NT_STATUS_INTERNAL_DB_CORRUPTION
so I demoted dc e and installed 4.6 and upgraded to 8.3 (same versions
of my other samba dcs on the network), and all ok again.
existe any problem in update dc 4.6 to 4.10 or 4.8 to