Displaying 20 results from an estimated 700 matches similar to: "Package RODBC sqlQueries"
2012 Oct 15
1
rJava install - "%1 is not a valid Win32 application."
All –
I’m having a problem with the rJava package. I can download it to my
machine (Win 7 64-bit) but when I try to load the package into R (2.15.1,
64-bit version), I get the following error:
> require(rJava)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable
2012 Nov 27
4
Finding values in one column and
All -
I have a data frame
data.a
ID valueA valueB
6 12 12
17 15 14
58 18 16
98 11 12
73 19 20
84 19 14
58 20 14
24 11 12
81 15 16
21 15 14
62 14 12
67 13 14
78 13 17
35 10 13
13 11 15
14 17 18
85 16 15
35 13 9
18 15 16
and a data frame
data.b
ID valueA valueB
6
84
21
78
14
I'd like to have R find the data.b$ID in data.a$ID and insert the
corresponding data.a$valueA and
2012 Dec 11
5
Retain last grouping after a strsplit()
All -
I have a column of SiteNames:
SiteName
OYS-PIA2-FL-1
OYS-PIA2-LA-1
OYS-PI-LA-BB-1
OYS-PIA2-LA-10
...
[truncated]
and I want to include only the last few digits into a new column.
I tried
substr(data$SiteName, 13, 20)
but because some SiteName values are of a different length, the final
hyphen (i.e., "-") was included:
"1"
"1"
"-1"
"10"
2013 Oct 11
3
Create sequential vector for values in another column
Hello all -
I have an example column in a dataFrame
id.name
123.45
123.45
123.45
123.45
234.56
234.56
234.56
234.56
234.56
234.56
234.56
345.67
345.67
345.67
456.78
456.78
456.78
456.78
456.78
456.78
456.78
456.78
456.78
...
[truncated]
And I'd like to create a second vector of sequential values (i.e., 1:N) for
each unique id.name value. In other words, I need
id.name x
123.45 1
123.45
2010 Aug 23
2
Quantile Regression and Goodness of Fit
All -
Does anyone know if there is a method to calculate a goodness-of-fit
statistic for quantile regressions with package quantreg?
Specifically, I'm wondering if anyone has implemented the
goodness-of-fit process developed by Koenker and Machado (1999) for R?
Though I have used package quantreg in the past, I may have overlooked
this function, if it is included.
Citation:
Koenker, R. and
2011 Mar 24
3
tapply with specific quantile value
All -
I have an example data frame
x l.c.1
43.38812035 085
47.55710661 085
47.55710661 085
51.99211429 085
51.99211429 095
54.78449958 095
54.78449958 095
56.70201864 095
56.70201864 105
59.66361903 105
61.69573564 105
61.69573564 105
63.77469479 115
64.83191994 115
64.83191994 115
66.98222118 115
66.98222118 125
66.98222118 125
66.98222118 125
66.98222118 125
and I'd like to get the 3rd
2008 Jun 10
3
newbie nls question
I'm tyring to fit a relatively simple nls model to some data, but keep coming up against the same error (code follows):
Oto=nls(Otolith ~ Linf*(1-exp(-k(AGE-to))),
data = ages,
start = list(Linf=1000, k=0.1, to=0.1),
trace = TRUE)
The error message I keep getting is "Error in eval(expr, envir, enclos) : could not find function "k"". I've used this
2008 Dec 18
2
Contextstack overlow
All -
I have a number of rows that I am assigning length classes to via
l.class<-with(wae,
ifelse((Length>=120)&(Length<130),"125",
ifelse((Length>=130)&(Length<140),"135",
ifelse((Length>=140)&(Length<150),"145",
ifelse((Length>=150)&(Length<160),"155",
2008 Jun 12
2
Predicting from an nls model
I keep running up against the same error when I try to plot a line from a nls model. The data is fisheries length/weight data. Code follows:
require(graphics)
pow = nls(Weight~alpha*Length^beta, data=wae,
start=list(alpha=0.0000001, beta=3.0), trace=TRUE)
predict(pow)
plot(Weight~Length,
2004 Sep 20
2
Cisco 76XX - How to ignore a call (silence ring)
I am preparing to setup a system using Cisco 7940 and 7960's I have the
7.1 SIP firmware on them.
One issue I have run into is how to silence the ringer if a call comes
in and you don't want to take it.
Many phones have a DND button. I know the 79XX has the DND in the menu
but it is to cumbersome to go into the settings then phone preferences
then the DND and select yes.
Is there any other
2008 Dec 22
3
Summary information by groups programming assitance
All -
I have data that looks like
psd Species Lake Length Weight St.weight Wr
Wr.1 vol
432 substock SMB Clear 150 41.00 0.01 95.12438
95.10118 0.0105
433 substock SMB Clear 152 39.00 0.01 86.72916
86.70692 0.0105
434 substock SMB Clear 152 40.00 3.11 88.95298
82.03689 3.2655
435 substock SMB Clear
2004 Sep 10
3
call quality monitoring
I need to debug a call quality issue with remote users on the other
end of a satellite link. The symptoms are: we here on the Internet
side can hear them just fine. On their end, things work sorta OK most
times, but they often suffer from severe dropouts and digital
warbling, both of which I attribute to them missing packets. Often
times they can't make out a word we are saying while we can
2008 Jun 13
2
Quartile regression question
I have data that looks like
lake,loglength,logweight
1,2.369215857,1.929418926
1,2.426511261,2.230448921
1,2.434568904,2.298853076
1,2.437750563,2.298853076
1,2.442479769,2.230448921
1,2.445604203,2.356025857
...
102,2.722633923,3.310268367
102,2.781755375,3.502153893
102,2.836324116,3.683407299
102,2.802773725,3.583312152
102,2.790285164,3.546419267
102,2.806179974,3.599118565
2011 Mar 25
2
"for" loop assistance -
All ?
I have an example data frame
x lc1 id
43.38812035 85 ga1
47.55710661 85 ga1
47.55710661 85 ga2
47.55710661 85 ga2
51.99211429 85 ga3
51.99211429 85 ga3
51.99211429 95 ga1
54.78449958 95 ga1
54.78449958 95 ga2
54.78449958 95 ga2
56.70201864 95 ga3
56.70201864 95 ga3
56.70201864 105 ga1
59.66361903 105 ga1
59.66361903 105 ga2
61.69573564 105 ga2
61.69573564 105 ga3
61.69573564 105 ga3
2008 Aug 22
2
Newbie programming help
All -
Not sure if this is a real programming question, but here goes:
I have data that looks like
Lake Length Weight
1 158 45
1 179 70
1 200 125
1 202 150
1 206 145
1 209 165
1 210 140
1 215 175
1 216 152
1 220 150
1 221 165
...
where lake goes from 1 - 84 and the number of rows for each lake is variable (but > ~20).
I'm trying to do two things: 1) build a simple linear model of the
2012 Dec 19
1
"For" loop and "if" question
All -
I have a large data frame that looks like
ID p1 p2 p3...p20 Lat1 Lat2 Lat3...Lat20
Long1 Long2 Long3...Long20
1 0 0 1 0 NA NA 29.xx NA
NA NA -89.xx NA
2 1 0 0 1 27.xx NA NA 29.00
-88.00 NA NA -89.xx
3 0 0 0 0 NA
2012 Nov 29
1
Read in alphanumeric column without decimals
All -
How can I read in a column of alphanumeric values without including
".0" on the numeric values?
Original column:
TeamLeaderID
258
342
316
U8
331
279
D1
116
235
296
...
[truncated]
leaders = read.xlsx2('FILE', sheetIndex = 1, header = T)
Column after it's been read in:
leaders$TeamLeaderID
258.0
342.0
316.0
U8
331.0
279.0
D1
116.0
235.0
296.0
...
[truncated]
If I
2004 Dec 01
6
Asterisk + Satellite connection
Hello,
I have an Asterisk with one local Cisco ATA and one remote Cisco ATA
connected to the Asterisk, the remore connection is a satellite link
with an 900ms delay. I can make calls from the remote site to the
local site, but when try to call from local to remote it doesn't work.
The Asterisk timesout, it sais no one answered and can?t establish
the connection.
Can anybody help me with
2008 Sep 02
2
nls.control()
All -
I have data:
TL age
388 4
418 4
438 4
428 5
539 10
432 4
444 7
421 4
438 4
419 4
463 6
423 4
...
[truncated]
and I'm trying to fit a simple Von Bertalanffy growth curve with program:
#Creates a Von Bertalanffy growth model
VonB=nls(TL~Linf*(1-exp(-k*(age-t0))), data=box5.4,
start=list(Linf=1000, k=0.1, t0=0.1), trace=TRUE)
#Scatterplot of the data
plot(TL~age, data=box5.4,
2010 Nov 19
1
TukeyHSD error
All -
I think I'm being dense, but for the life of me, I can't figure out
why I get error message with the code below.
I have data that looks like
param level perc.surv asin.tran
DO 3 0.6864407 0.9764544
DO 3 0.1250000 0.3613671
DO 3 0.8738739 1.2077299
DO 4 0.4615385 0.7468986
DO 4 0.5691057 0.8547258
DO 4 0.8504673 1.1737517
DO 6 0.5494505 0.8349297
DO