Displaying 20 results from an estimated 60000 matches similar to: "Creating a data.frame"
2008 May 07
4
name resolves to public address - should resolve to private...
On my network I have one Samba PDC (Version 3.0.28 running on FreeBSD
6.3-PRERELEASE), one mail server (FreeBSD + Dovecot + Postfix) and a
dozen or so WinXP/Win2K machines. The WinXP/Win2K machines all have
static IP addresses.
The Windows clients are configured to look up the Samba PDC machine for
both DNS and WINS. The Windows clients seem to be able to find other
machines as well as the PDC:
2008 Aug 25
1
cbind in data.frame
hi,
when I used cbind to combine columns, some contents of columns has been replaced by
number. in the script below, column should be aaa,bbb,ccc but I was given 1,2,3.
but when I change the column to vector, it gave me correct contents. can you please
tell me why?
> d<-read.table("aaa.txt")
> d
V1 V2
1 aaa 123
2 bbb 345
3 ccc 986
> cbind(d[,1],d[,2])
[,1] [,2]
2006 Jul 06
2
tapply question
I think I understand tapply but i still
can't figure out how to do the following.
I have a dataframe where some of the column names are the same
and i want to make a new dataframe where columns
that have the same name are averaged by row.
so, if the data frame, DF, was
AAA BBB CCC AAA DDD
1 0 7 11 13
2 0 8 12 14
3 0 6 0 15
2011 Jun 14
1
[Resolved] combine the data frames into comma separated list.
Hi
Thanks Gabor for your suggestion. I am posting the code that worked for me.
dataframe1 = data.frame(cbind(Src = c(1,1,1,2,3), Target1 =
c('aaa','bbb','ccc','aaa','ddd'))); #must be data frame
dataframe2 = data.frame(cbind(Src = c(2,3,4,4,4), Target2 =
c('aaaa','dddd','bbbb','eeee','ffff')));
dataframe3 =
2006 Jul 06
2
[Fwd: as.data.frame question]
>From: markleeds at verizon.net
>Date: Thu Jul 06 13:16:42 CDT 2006
>To: markleeds at verizon.net
>Subject: as.data.frame question
>hi all : as a result of an lapply command,
>i get the following output.
>
>
>$AAA
> 000106 000107 000108
> 5.5 6.5 3.0
>
>$BBB
> 000106 000107 000108
> 4 5 6
>
>$CCC
2004 May 05
3
sip.conf and SIP client host= not recognized in some cases
I am seeing an issue with getting certain sip devices to be recognized as
defined SIP clients host= in the sip.conf and the only deference that I can
find btw sources that work and don't work is that devices that send packets
with an Initial Via header of themselves appears to work and pick the
context correctly but those that don't have the Via just get dropped in the
context of the
2012 Apr 17
3
Can a matrix have 'list' as rows/columns?
After a lot of processing I get a matrix into M. I expected each row and
column to be a vector. But it is a list.
R-Inferno says...
"Arrays (including matrices) can be subscripted with a matrix of positive
numbers. The subscripting matrix has as many columns as there are dimensions
in the array—so two columns for a matrix. The result is a vector (not an
array)
containing the selected
2006 Apr 04
5
Not routing for 1 host?
Hi,
I want to stop routing for 1 particular host in my network. I thought that this would do it:
iptables -D INPUT -d aaa.bbb.ccc.ddd -j DROP
iptables -D INPUT -s aaa.bbb.ccc.ddd -j DROP
But that still shows traffic. What is the corract way to do that?
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail:
2003 May 01
4
var[i]
Dear all,
How could I use variables in a loop that their names are in a vector?
For example:
aaa <- 1:10
bbb <- aaa*2
ccc <- aaa+bbb
varn <- c("aaa", "bbb", "ccc")
m <- rep(NA, 3)
for (i in 1:length(varn)) m[i] <- mean(varn[i]) # wrong
thanks in advance
Juli
--
"Wars do not solve problems, wars generate even more problems"
2020 Jul 14
6
internal DNS not forwarding
Hello,
I am trying to setup a samba4 AD dc in my network using smb-tool.
Everything seems to work except DNS forwarding.
If I query for the dc
root at dc:~# nslookup dc.local.domain.it
I get the correct answer:
root at dc:~# nslookup dc
Server:???????? aaa.bbb.ccc.ddd
Address:??????? aaa.bbb.ccc.ddd#53
Name:?? dc.xxxx.yyyy.it
Address: aaa.bbb.ccc.ddd
but if I query for an external domain:
root
2010 May 20
2
Re : Manipulating Data Frames
Dear All,
I have data some thisng like this :
> data <- read.csv(file='ipsample.csv',sep=',' , header=TRUE)
> data
State Jan Feb Mar Apr May Jun
1 AAA 1 1 0 2 2 0
2 BBB 1298 1195 1212 1244 1158 845
3 CCC 0 0 0 1 2 1
4 DDD 5 11 17 15 10 9
5 EEE 18 28 27 23 23 16
6 FFF 68 152 184 135 111
2006 Jan 22
1
setting up vpn client on a freebsd workstation
I have the following network:
External Interface External Interface
ccc.ccc.ccc.ccc aaa.aaa.aaa.aaa
| |
--> VPN <--> Internet <--> FreeBSD Client (NATed extip: bbb.bbb.bbb.bbb)
|
FW-1 Protected Net
ddd.ddd.ddd.ddd/24
VPN: ipsec freeswan (UDP encapsulated tunnel)
ccc.ccc.ccc.ccc has port 136/UDP open for
2005 Jul 22
3
Question regarding subsetting
I run R 2.1.1 in a Linux environment (RedHat 9) although my question
is not platform-specific.
Consider the following:
> A <- c("Prefix-aaa", "Prefix-bbb", "Prefix-ccc")
> B <- strsplit(A, "-")
> B
[[1]]
[1] "Prefix" "aaa"
[[2]]
[1] "Prefix" "bbb"
[[3]]
[1] "Prefix" "ccc"
How
2007 Jun 21
4
"if" within a function
Dear Friends.
I found a puzzling phenomenon in R when you use 'if' within a function:
# defining a function aaa
aaa=function(a)
{if (a==1) {aaa=1};
if (a!=1) {aaa=2}
}
# using the function:
> b=20
> bbb=aaa(b)
> bbb
[1] 2
> typeof(bbb)
[1] "double"
>
>
> c=1
> ccc=aaa(c)
> ccc
NULL
> typeof(ccc)
[1] "NULL"
It seems that only the last
2010 Oct 27
4
One silly question about "tapply output"
Dear R helpers
I have a data which gives Month-wise and Rating-wise Rates. So the input file is something like
month rating rate
January AAA 9.04
February AAA 9.07
..........................................
..........................................
Decemeber AAA 8.97
January BBB 11.15
February
2012 Oct 02
3
PROBLEM : Cannot require an Exec
hello:
i currently am using Puppet to run some commands in a sequence. there are
two sequences of exec resources. we found that we cannot use require =>
Exec and it does not work at all as expected. here is some sample code.
exec { "exec-AAA":
command => "/bin/true",
returns => 0,
notify => Exec["exec-BBB"],
}
exec { "exec-BBB":
2006 Mar 14
9
firewall problem
snat not working
my local ip is aaa.aaa.aaa.aaa
asterisk sitting on the internet at ip bbb.bbb.bbb.bbb
my firewall''s internal ip is 192.168.0.254
i did snat:
iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to aaa.aaa.aaa
iptables -t nat -L -v gives:
Chain POSTROUTING (policy ACCEPT 23663 packets, 2182K bytes)
pkts bytes target prot opt in out source
destination
33056
2008 Oct 03
3
OT: RIP settings for private netblocks
I am contemplating converting some of our internal networks from routable
to private IPv4 address space. I have a question about RIP as implemented
under Cisco IOS 12.x.
Presently the setting for rip is:
router rip
version 2
passive-interface [[FastEthernet]]0/0
network aaa.bbb.ccc.0
no auto-summary
What I would like to know is how one routes the entire 192.168/16 address
space using rip.
2003 Nov 21
4
Unable to create channel of type 'SIP'
I recently moved my Asterisk configuration to a new server and re-built
Asterisk from CVS. Now, I'm experiencing the following issue with SIP:
Executing Dial("Zap/1-1", "SIP/100|20") in new stack
NOTICE[-1232077904]: File app_dial.c, Line 518 (dial_exec): Unable to
create channel of type 'SIP'
== Everyone is busy at this time
Has anyone seen this issue before?
2011 Jun 13
3
combine the data frames into comma separated list.
Hi R users,
I am new to R and am trying to merge data frames in the following way.
Suppose I have n data frames each with two fields. Field 1 is common among
data frames but may have different entries. Field 2 is different.
Data frame 1:
Src Target1
1 aaa
1 bbb
1 ccc
2 aaa
3 ddd
Data frame 2:
Src Target2
2 aaaa
3 dddd
4 bbbb
4