kuwisdelu
Apr 15, 12:58 PM
> if (any(socscore<=3)) q<-0 else q=1
> q
[1] 0
Why am I only getting 1 answer?
Thanks in advance,
Ernie
One of the hardest things to remember when using R compared to other programming languages, is that almost everything you do is a vector operation. When you do q <- 0, R is going to apply the "<- 0" to the entire vector of q. And if you haven't created q before this, q will just be set equal to either 0 or 1. What you're asking R to do is if any value in socscore is less or equal to than 3, assign 0 to q, otherwise assign 1 to q. I'm assuming you want q to be a vector of 0's and 1's corresponding to whether socscore <= 3 or not?
There are a couple ways to do that. You can either use a loop:
q <- rep(NA, length(socscore))
for ( i in 1:length(socscore) {
Finger Wave
into soft finger waves for
wedding updos
more...
relaxed hairstyles updo finger
finger wave hairstyles – how
more...
2009 stylish updo hairstyle
Finger Waves and More
more...
Finger Wave Lookbook
Her flapper-esque finger waves
more...
into finger waves using a
by finger combing waves
more...
1930s: Curls and finger waves.
trying finger waves seems
more...
Loose finger waves, low updo.
a finger wave hairstyle,
more...
to the finger-waves in her
Finger waving was a very
Classic finger waves were
> q
[1] 0
Why am I only getting 1 answer?
Thanks in advance,
Ernie
One of the hardest things to remember when using R compared to other programming languages, is that almost everything you do is a vector operation. When you do q <- 0, R is going to apply the "<- 0" to the entire vector of q. And if you haven't created q before this, q will just be set equal to either 0 or 1. What you're asking R to do is if any value in socscore is less or equal to than 3, assign 0 to q, otherwise assign 1 to q. I'm assuming you want q to be a vector of 0's and 1's corresponding to whether socscore <= 3 or not?
There are a couple ways to do that. You can either use a loop:
q <- rep(NA, length(socscore))
for ( i in 1:length(socscore) {
JackAxe
Apr 16, 08:11 PM
HDMI is basically DVI + Audio. VGA can't compare nor can component when it comes to bandwidth.
<]=)
<]=)
Mikebuzzsaw
Mar 7, 04:13 PM
Warranty until August 2008... can be extended with Applecare. Unlocked 1.1.3 and is in very good condition. No scratches or blemishes on the screen. Light scuffs on the chrome part of the phone. Comes with original box and accessories.
Will ship USPS Priority. I honestly don't know how much these go for, so just pm me a price.
WANT
- Large 3.5 SATA 3 drive.
- Slingbox
- 2.1 Bose Speakers
- Playstation 3
- Apple ethernet dongle
Will ship USPS Priority. I honestly don't know how much these go for, so just pm me a price.
WANT
- Large 3.5 SATA 3 drive.
- Slingbox
- 2.1 Bose Speakers
- Playstation 3
- Apple ethernet dongle
TheWheelMan
May 4, 09:33 PM
Not yet because I actually use my iPad during the week. I'll try that over the weekend. I just can't believe I am the only one having this problem.
Why? Stuff like that happens to people all the time. Just because you're having a problem doesn't mean it's a widespread one. Besides, if it had been a widespread one, you wouldn't have had to ask. There would have been numerous posts on this already.
I'm sure you'll figure it out soon.
Why? Stuff like that happens to people all the time. Just because you're having a problem doesn't mean it's a widespread one. Besides, if it had been a widespread one, you wouldn't have had to ask. There would have been numerous posts on this already.
I'm sure you'll figure it out soon.
more...
SevenInchScrew
Feb 9, 04:52 PM
We already have a thread for this....
http://forums.macrumors.com/showthread.php?t=1049420
http://forums.macrumors.com/showthread.php?t=1049420
NeoMac
Mar 10, 12:36 PM
Do you still live at home with your parents, or are you away at school? If you rent an apartment you should be able to buy renters insurance and purchase additional coverage for your gear. I did this while I was away at school and renting an apartment. It was only a few extra bucks a month for the extra coverage. If you still live with your parents they can buy additional coverage on their property insurance.
more...
Umit
May 4, 12:06 PM
Hi all,
I've sold my sgs i9000 and switched to iphone 3gs and i am more than happy now. iphone ui is really so smooth and things are cool. I recommend to switch to all android users that got fed up with bugs and lags.
I've purchased few apps yesterday and i wonder what happens if i switch to iphone 4 (or ip5) in the future? Will i have to re purchase them again?
I've sold my sgs i9000 and switched to iphone 3gs and i am more than happy now. iphone ui is really so smooth and things are cool. I recommend to switch to all android users that got fed up with bugs and lags.
I've purchased few apps yesterday and i wonder what happens if i switch to iphone 4 (or ip5) in the future? Will i have to re purchase them again?
bmorris
Jan 17, 10:18 PM
http://store.apple.com/Catalog/US/Images/tq133_alt.jpg
doesnt this already exist?
all they need is some kind of dongle or adapter to loose the wire?
doesnt this already exist?
all they need is some kind of dongle or adapter to loose the wire?
more...
Jbgloss
Apr 23, 09:42 PM
He used a Mac.
Image (http://boskolives.files.wordpress.com/2009/11/powerbook_5300_screen.jpg?w=400&h=263)
HAHAHAHAH
This thread has gone tooooooo - freaking amazing comedy
LOVE IT!!!!
LMAO
2 more days - I am back home from a Colombia. Bought my new MP Hex 3.33 and had it for exactly 2 weeks and headed down here for a month..... GRRRR 2 more days back to work with the 2 ACD's waiting - love my MBP but can't wait to get home and get to work!!!!!
Image (http://boskolives.files.wordpress.com/2009/11/powerbook_5300_screen.jpg?w=400&h=263)
HAHAHAHAH
This thread has gone tooooooo - freaking amazing comedy
LOVE IT!!!!
LMAO
2 more days - I am back home from a Colombia. Bought my new MP Hex 3.33 and had it for exactly 2 weeks and headed down here for a month..... GRRRR 2 more days back to work with the 2 ACD's waiting - love my MBP but can't wait to get home and get to work!!!!!
blacktape242
Jan 20, 08:09 PM
yes i am beating a dead horse....but......
all these updates and not an iweb update is really disappointing.
is the application dead or not, come on apple!?!?!? :mad:
all these updates and not an iweb update is really disappointing.
is the application dead or not, come on apple!?!?!? :mad:
more...
LeeTom
Oct 16, 01:35 PM
Yeah, what programs are you going to need that you can't run in OS X?
Lee Tom
Lee Tom
Blue Velvet
Sep 25, 08:10 PM
Specifically, you mean men's trousers.
Perhaps it's to do with the way men's clothing in Western society has adapted through the years as responses to their occupations, especially since the Industrial Revolution. Hard-wearing and inexpensive textiles for manual workers, expensive but muted colours for those in non-manual trades... combined with the general expense of decorative fabrics.
But I'm just wildly speculating here...
A couple of weeks ago, I went to the Victoria & Albert Museum (http://www.vam.ac.uk/) here in London where they have many collections of historical clothing from throughout the world � many non-western cultures were far more flamboyant in their male attire, particularly cultures from the Orient.
But now the suit has become the international masculine garb of politics, trade and commerce. Take one look at those staged photos of the leaders at the G8 or any other international gathering � it's rare to see leaders in traditional and local dress.
My random thoughts, anyway.
Perhaps it's to do with the way men's clothing in Western society has adapted through the years as responses to their occupations, especially since the Industrial Revolution. Hard-wearing and inexpensive textiles for manual workers, expensive but muted colours for those in non-manual trades... combined with the general expense of decorative fabrics.
But I'm just wildly speculating here...
A couple of weeks ago, I went to the Victoria & Albert Museum (http://www.vam.ac.uk/) here in London where they have many collections of historical clothing from throughout the world � many non-western cultures were far more flamboyant in their male attire, particularly cultures from the Orient.
But now the suit has become the international masculine garb of politics, trade and commerce. Take one look at those staged photos of the leaders at the G8 or any other international gathering � it's rare to see leaders in traditional and local dress.
My random thoughts, anyway.
more...
plinden
Aug 18, 06:08 PM
Hey Folks.
So today my boss mentioned that it would be really nice to use babel fish to translate our entire website much like what is being done here:
http://www.golfgolden.com/content/view/10/33/
with the babelfish box on the left side.
This actually isn't a bad idea over all, except when I try running our website (http://www.SkiBig3.com) through babel fish it breaks the DHTML drop down menus, I suspect this has to do with the fact that babelfish sticks the site into a frame but I'm wondering if anyone has or knows of a work around for this??
Babelfish is an abomination, useful only for laughs. Here's a paragraph from a German news website (FAZ.net) translated into English.
"Because on 22 July officials shot the innocent Brazilian Jean Charles de Menezes, whom they had regarded as a terrorist. For Blair however the reproaches, it are more serious an independent investigation of the "Independent policy Complaints Commission" in the case Menezes to stop wanted."
So today my boss mentioned that it would be really nice to use babel fish to translate our entire website much like what is being done here:
http://www.golfgolden.com/content/view/10/33/
with the babelfish box on the left side.
This actually isn't a bad idea over all, except when I try running our website (http://www.SkiBig3.com) through babel fish it breaks the DHTML drop down menus, I suspect this has to do with the fact that babelfish sticks the site into a frame but I'm wondering if anyone has or knows of a work around for this??
Babelfish is an abomination, useful only for laughs. Here's a paragraph from a German news website (FAZ.net) translated into English.
"Because on 22 July officials shot the innocent Brazilian Jean Charles de Menezes, whom they had regarded as a terrorist. For Blair however the reproaches, it are more serious an independent investigation of the "Independent policy Complaints Commission" in the case Menezes to stop wanted."
ZipZap
Apr 21, 05:19 AM
I have a Dell Inspiron 15 (4 yr old) on Windows 7 Ultimate. I get a little over 3 hours of typical use on battery.
While I have not done so, I would bet that replacing the HD with an SSD would extend that time considerably.
It did on my Alienware m11x.
While I have not done so, I would bet that replacing the HD with an SSD would extend that time considerably.
It did on my Alienware m11x.
more...
md63
Mar 6, 04:42 PM
The current jb programs aren't as easy as jailbreakme.com. Considering the OP is too lazy to research what's available, the jb programs might require too much effort. :rolleyes:
Its not that I'm too lazy to research whats available. I actually have done research on the subject, which raised a number of questions. I'm not an expert at hacking iPad. I also have a job, two kids and not a lot of time to troubleshoot a problem if I mess up my iPad configuration. Apparently you have plenty of time on your hands to make utterly useless comments. :cool:
Its not that I'm too lazy to research whats available. I actually have done research on the subject, which raised a number of questions. I'm not an expert at hacking iPad. I also have a job, two kids and not a lot of time to troubleshoot a problem if I mess up my iPad configuration. Apparently you have plenty of time on your hands to make utterly useless comments. :cool:
Mikebuzzsaw
Mar 7, 04:13 PM
Warranty until August 2008... can be extended with Applecare. Unlocked 1.1.3 and is in very good condition. No scratches or blemishes on the screen. Light scuffs on the chrome part of the phone. Comes with original box and accessories.
Will ship USPS Priority. I honestly don't know how much these go for, so just pm me a price.
WANT
- Large 3.5 SATA 3 drive.
- Slingbox
- 2.1 Bose Speakers
- Playstation 3
- Apple ethernet dongle
Will ship USPS Priority. I honestly don't know how much these go for, so just pm me a price.
WANT
- Large 3.5 SATA 3 drive.
- Slingbox
- 2.1 Bose Speakers
- Playstation 3
- Apple ethernet dongle
more...
jessica.
May 6, 09:36 AM
Just a rant (or a whine) ;)
I was just giving you a hard time, it's the nature of my personality. ;)
On a related note, I recently took a few days off work and noticed that the hours I put in during the weeks leading up to my whopping 3-day vacation far exceeded the time off that I took. I already work a minimum of 10 hour days, combine that with the onset of an actual day off, it's absurd.
To me, and to many of my friends across the pond, US working conditions are for the birds. You should be able to take a vacation and not feel obligated to work extended hours to ensure things are ok while you're gone. I don't know if your situation is because others lack competence or what, but it's a shame that we have to wear ourselves thin just to take a couple of days off. In my eyes, the days off aren't worth it so I tend to "give back" 100+ hours of paid time off at year end each year.
Of course there is always one yahoo that counters with, "at least you have a job." Which is true but that doesn't negate poor working conditions.
</rant>
I was just giving you a hard time, it's the nature of my personality. ;)
On a related note, I recently took a few days off work and noticed that the hours I put in during the weeks leading up to my whopping 3-day vacation far exceeded the time off that I took. I already work a minimum of 10 hour days, combine that with the onset of an actual day off, it's absurd.
To me, and to many of my friends across the pond, US working conditions are for the birds. You should be able to take a vacation and not feel obligated to work extended hours to ensure things are ok while you're gone. I don't know if your situation is because others lack competence or what, but it's a shame that we have to wear ourselves thin just to take a couple of days off. In my eyes, the days off aren't worth it so I tend to "give back" 100+ hours of paid time off at year end each year.
Of course there is always one yahoo that counters with, "at least you have a job." Which is true but that doesn't negate poor working conditions.
</rant>
applemacdude
Aug 28, 08:01 PM
Is it the classic moments? The years on teh site? Post count? What is is?
edesignuk
Oct 8, 07:39 AM
This artical refers to the Pioneer DVR-A05, already announced by Arn (http://forums.macrumors.com/showthread.php?s=&threadid=12321), which actually even links the same information source! :) :p
The Samurai
Apr 19, 03:36 AM
I use Muc Off (http://www.youtube.com/watch?v=3nsgHkY3NZs) - works a treat.
SilvorX
Jun 20, 10:39 PM
I enjoy funmac.com, small community but everyone gets together good, been there since day 1
Macrumors is basically at the top of my list, even tho i barely ever get the time to visit, when i first joined i was treated as a n00b just because I didn't have a mac back then, but heh, this site has gotten heck alot better since some of the flamers are longgggg gone now
Macrumors is basically at the top of my list, even tho i barely ever get the time to visit, when i first joined i was treated as a n00b just because I didn't have a mac back then, but heh, this site has gotten heck alot better since some of the flamers are longgggg gone now
daneoni
Mar 4, 03:28 PM
Is it too late to ask for one? lilrotex@yahoo.com
Deathlok2001
Jul 30, 06:26 AM
W@W! 100 people at southgate! I am going to go and make a video.
THINK DIFFERENT!
I LOVE how APPLE "claps you in" when they open the store!
THINK DIFFERENT!
I LOVE how APPLE "claps you in" when they open the store!
asif786
Aug 18, 11:13 AM
hehe yeah, personally I will never understand the appeal of coldplay. I think the best review I ever read about one of there shows was "Coldplay is a sugar overdose for the masses" :p
heh, i used to agree. listen to their latest album. it's much better than the others. ;)
heh, i used to agree. listen to their latest album. it's much better than the others. ;)